Invention content
The present invention provides a kind of insurance products and defines method and device, and main purpose is to solve existing insurance productsDevelopment cycle is long, it is difficult to the technical issues of meeting the needs of business fast development.
To achieve the above object, the present invention provides a kind of insurance products and defines method, which defines method and include:
Product Management System obtains the product uploaded based on Product Definition request when receiving Product Definition requestParameter document;
The Product Management System parses the product parameters document with the field that gets parms, according to replacement algorithm by described inParameter field is converted to definition field;
By the definition field being converted to according to preset frame storage to the number docked with the Product Management SystemAccording in library, by the Product Definition to the database.
Optionally, the Product Management System parses the product parameters document with the field that gets parms, and is calculated according to displacementAfter the parameter field is converted to the step of defining field by method, the insurance products define method and further include:
It detects the Product Definition and asks whether corresponding product has defined in the database;
If the Product Definition asks corresponding product undefined in the database, the institute that will be converted to is performedIt states definition field to store into the database docked with the Product Management System according to preset frame, by the Product DefinitionThe step of to the database.
Optionally, it is described to turn if the Product Definition asks corresponding product to define in the databaseThe definition field got in return is stored according to preset frame into the database docked with the Product Management System, by instituteIt states Product Definition and includes to the step of database:
The definition field being converted to and the definition field of the product currently in the database are compared;
Newer definition field is obtained according to comparing result, the newer field that defines is arrived and institute according to preset frame storageIn the database for stating Product Management System docking, by the Product Definition to the database.
Optionally, the Product Management System parses the product parameters document with the field that gets parms, and is calculated according to displacementThe parameter field is converted to the step of defining field and included by method:
The Product Management System parses the product parameters document with the field that gets parms, and detects the product parametersWith the presence or absence of the parameter field repeated in document;
If there is the parameter field repeated, processing is filtered, and according to replacement algorithm to the parameter field gotParameter field after filtering is converted into definition field.
Optionally, if described have the parameter field repeated, processing, and root are filtered to the parameter field gotThe parameter field after filtering is converted to the step of defining field according to replacement algorithm to include:
If there is the parameter field repeated, label is deleted in the parameter field addition for the repetition;
When the parameter field that parsing obtains is converted to definition field according to replacement algorithm, filter out with deletion labelThe parameter field, by except with delete mark in addition to parameter field definition field is converted to based on the replacement algorithm.
In addition, to achieve the above object, the present invention also provides a kind of insurance products definition device, insurance products definition dressesPut including:
File acquisition module, for when receiving Product Definition request, obtaining and being uploaded based on Product Definition requestProduct parameters document;
Data conversion module, for parsing the product parameters document with the field that gets parms, according to replacement algorithm by instituteIt states parameter field and is converted to definition field;
Product Definition module, for the definition field being converted to be arrived and the product according to preset frame storageIn the database for managing system docking, by the Product Definition to the database.
Optionally, the insurance products definition device further includes:
Data detection module asks whether corresponding product has been defined on the data for detecting the Product DefinitionIn library;
The Product Definition module is additionally operable to:Ask corresponding product undefined in the database in the Product DefinitionWhen middle, by the definition field being converted to according to preset frame storage to the database docked with the Product Management SystemIn, by the Product Definition to the database.
Optionally, if the Product Definition asks corresponding product to define in the database, the productDefinition module includes:
Field comparison unit, for current the determining in the database of the definition field that will be converted to and the productAdopted field is compared;
Product Definition unit, for obtaining newer definition field according to comparing result, by it is newer define field according toIn preset frame storage to the database docked with the Product Management System, by the Product Definition to the database.
Optionally, the data conversion module includes:
Data resolution unit, for parsing the product parameters document with the field that gets parms;
Repetition detection unit, for detecting in the product parameters document with the presence or absence of the parameter field repeated;
Date Conversion Unit, for there is the parameter field repeated in detecting product parameters document in repetition detection unitWhen, processing is filtered to the parameter field got, and the parameter field after filtering is converted to by definition according to replacement algorithmField.
Optionally, the Date Conversion Unit includes:
Label addition subelement, if for there is the parameter field repeated, the parameter field addition for the repetition is deletedExcept label;
Data conversion subelement, for being converted to definition field by obtained parameter field is parsed according to replacement algorithmWhen, it filters out with the parameter field for deleting label, the parameter field in addition to label is deleted is based on described putScaling method is converted to definition field.
Insurance products proposed by the present invention define method and device, Product Management System and connection, wherein the numberIt is for storing the database of Product Definition field according to library, the said goods manage system when receiving Product Definition request, baseIt is parsed in the corresponding product parameters document of the Product Definition acquisition request, and to the product parameters document, gets parameterThe parameter field is switched to definition field according to replacement algorithm, deposits the definition field being converted to according to preset frame by fieldIt stores up in above-mentioned database, to realize the Product Definition in the database, therefore, for Product Definition personnel, is havingWhen new product needs to be defined, it is only necessary to write the product parameters document of the product and be uploaded to Product Management System, produceParameter field can be converted to definition field by quality control reason system automatically as procedure described above, not need to carry out the volume of DML scriptsIt writes, handles, can be realized at any time to insurance products without version updating is submitted to ask and is handed over to special developerDefinition.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of insurance products and defines method.With reference to shown in Fig. 1, method the is defined for insurance products of the present inventionThe flow chart of one embodiment.
In the present embodiment, which defines method and includes:
Step S10, Product Management System are obtained when receiving Product Definition request based in Product Definition requestThe product parameters document of biography.
Step S20, the Product Management System parse the product parameters document with the field that gets parms, are calculated according to displacementThe parameter field is converted to definition field by method.
One Product Management System is provided in the embodiment of the present invention, when Product Definition personnel have Product Definition demand, Ke YijianVertical product parameters document, such as the documents of excel forms is established as product parameters document, Product Definition personnel can be according to needThe parameter field of product to be defined is edited in the document, there can be multiple parameters field in a product parameters document,By taking endowment insurance as an example, such as include " name ", " certificate number in insurer's information in a new insurance products to be definedThe two parameter fields of code ", then Product Definition personnel can edit above-mentioned two parameter field in product parameters document.
Product Definition personnel trigger Product Definition by Product Management System and ask, and Product Management System is receiving productDuring definition request, product parameters File Uploading GUIs can be shown, so that user will be on the above-mentioned product parameters document edittedProduct Management System is passed to, Product Management System obtains the product parameters document uploaded, and the document is parsed, and getsParameter field is converted to definition field by the parameter field in above-mentioned document according to replacement algorithm, wherein, replacement algorithm and dataThe programming language that library uses is related, and by taking data manipulation language as an example, above-mentioned " name " needs are converted to " name ", " passport NO. "It needs to be converted to " ID " etc..Wherein, it about replacement algorithm, needs to carry out bottom anatomy in advance by special developer, for instituteThe parameter field that is likely to occur during some Product Definitions sets corresponding definition field, and establishes parameter field and for its settingThe mapping relations between field are defined, parameter field is converted to the method for defining field as putting using according to above-mentioned mapping relationsScaling method.
Step S30 arrives the definition field being converted to and the Product Management System according to preset frame storageIn the database of docking, by the Product Definition to the database.
It for database, pre-sets define the fundamental that a product needs in the database, these are basicElement forms the basic framework of the definition data of a product, using the basic framework as the preset frame of Product Definition.The numberIt is docked according to library with Product Management System, Product Management System by replacement algorithm after obtaining defining field, by these defined wordsIn section storage to above-mentioned database, it can be stored when storage according to said frame, complete the definition of product.
Further, due to after in Product Definition to database, it is understood that there may be the definition field modification of product is deleted etc.Update operation only defines field to the part of defined product and is adjusted.Therefore, Product Definition system is comeIt says, when receiving Product Definition request, it may appear that following two situations:One kind is that the Product Definition asks corresponding product notDefinition is in the database;Another kind is that the Product Definition asks corresponding product to define in the database.For the firstSituation then illustrates definition of this definition operation for new product.For above-mentioned the second situation, then illustrate that this definition operation is toThe definition field of defined product is updated.
It can be exemplified below three kinds therein there are many embodiment and carry out specifically for the different situation of above twoIt is bright.As a kind of embodiment, when receiving Product Definition request, without judging that the Product Definition asks the corresponding product to beIt is no to have defined in field storehouse, it is redefined as new product, performs above-mentioned steps S10 to step S30.If thisSecondary operation is that the product data defined in the database are updated, then can define the production by Product Definition personnelBefore product or after Product Definition completion, whole fields that define of legacy version are deleted from database.
Alternatively, in another embodiment, after step S20 is performed, before step S30, the insurance products definition sideMethod further includes:It detects the Product Definition and asks whether corresponding product has defined in the database;If the productDefinition asks corresponding product undefined in the database, then performs step S30.That is, in this embodiment,Only the product of mistake undefined in database is defined, this just needs Product Definition personnel in the definition to defined productWhen field is updated, first the definition field of legacy version is deleted, parameter field is updated based on product parameters document.ThisSample for Product Management System, when receiving Product Definition request, will not detect determining for the product in the databaseAdopted field, the product operation of this definition are the definition of new product.
Alternatively, in other implementations, if the Product Definition asks corresponding product to be defined on the numberAccording in library, then step S30 includes:By the definition field being converted to and the defined word of the product currently in the databaseDuan Jinhang is compared;Newer definition field is obtained according to comparing result, the newer field that defines is arrived according to preset frame storageIn the database docked with the Product Management System, by the Product Definition to the database.
In this embodiment, when detection Product Definition asks corresponding product to define in the database, it incite somebody to action thisThe definition field that parameter field in the corresponding defined parameters document of secondary request is converted to it is defined fixed in databaseAdopted field is compared, and obtains newer definition field.Specifically, update one of the Product Definition personnel for defined parameters documentAs be that the parameter field in product parameters document is deleted, added or replaced.Accordingly, based on newer defined wordCan be the deletion, addition or replacement of field defined in database during the definition data of section upgrading products.
It is understood that in various embodiments of the present invention, in order to enable by Product Definition to data in the present inventionMethod in library is understood by, and is listed relatively simple parameter field and is illustrated, but in practical application insurance productionWhen product define method, actual information editor's product parameters document and parameter according to insurance products by Product Definition personnel are neededParameter field in document.
The insurance products that the present embodiment proposes define method, Product Management System and connection, wherein, the databaseIt is the database for storing Product Definition field, the said goods manage system when receiving Product Definition request, based on thisThe corresponding product parameters document of Product Definition acquisition request, and the product parameters document is parsed, parameter field is got,The parameter field is switched to by definition field according to replacement algorithm, stores the definition field being converted to upper according to preset frameIt states in database, to realize the Product Definition in the database, therefore, for Product Definition personnel, is there is new productWhen needing to be defined, it is only necessary to it writes the product parameters document of the product and is uploaded to Product Management System, the management of productParameter field can be converted to definition field by system automatically as procedure described above, not need to carry out DML scripts to write, also withoutVersion updating need to be submitted to ask and be handed over to special developer's processing, can be realized at any time to the definition of insurance products.
It is proposed that insurance products of the present invention define the second embodiment of method based on first embodiment.With reference to shown in Fig. 2, at thisIn embodiment, step S20 includes following refinement step:
Step S21, the Product Management System parse the product parameters document with the field that gets parms, and described in detectionWith the presence or absence of the parameter field repeated in product parameters document;
Step S22 if there is the parameter field repeated, is filtered the parameter field got processing, and according toParameter field after filtering is converted to definition field by replacement algorithm.
In this embodiment, after being parsed to product parameters document and getting parameter field, product parameters text is detectedThe parameter field repeated present in shelves, is filtered it processing, specifically, for the Repeating Field detected, adds for itDeletion is added to mark, when the parameter field that parsing obtains is converted to definition field according to replacement algorithm, filters out to have and deleteOther are not had the parameter field deleted except label and are converted to definition field, to avoid being defined by the parameter field of labelThere is the definition field repeated in product data in database, further, in the filtering for carrying out Repeating Field, in addition to rightExcept duplicate parameter field, it can also will can be converted to the identical parameter field for defining field and filter out, for example,Comprising " name ", " name " in insurer's information, after the two parameter fields are converted to definition field, it is" name ", therefore, can filter out it is therein any one.
The insurance products that the present embodiment proposes define method, before conversion parameter field, in product parameters documentThe advance filtration treatment of parameter field improves the accuracy of product definition data in database.
The present invention also proposes a kind of insurance products definition device.
It is the high-level schematic functional block diagram of insurance products definition device first embodiment of the present invention with reference to shown in Fig. 3.
In this embodiment, which includes:
File acquisition module 10, for when receiving Product Definition request, obtaining based in Product Definition requestThe product parameters document of biography.
Data conversion module 20, will according to replacement algorithm for parsing the product parameters document with the field that gets parmsThe parameter field is converted to definition field.
One Product Management System being deployed in insurance products definition device, Product Definition people are provided in the embodiment of the present inventionWhen member has Product Definition demand, product parameters document can be established, such as establishes the document of excel forms as product parameters textShelves, Product Definition personnel can edit the parameter field of product to be defined, a product parameters in the document as neededThere can be multiple parameters field in document, by taking endowment insurance as an example, such as insure in a new insurance products to be definedPeople's information includes " name ", " passport NO. " the two parameter fields, then Product Definition personnel can be in product parameters textAbove-mentioned two parameter field is edited in shelves.
Product Definition personnel trigger Product Definition by Product Management System and ask, and Product Management System is receiving productDuring definition request, product parameters File Uploading GUIs can be shown, so that user will be on the above-mentioned product parameters document edittedProduct Management System is passed to, Product Management System obtains the product parameters document uploaded, and the document is parsed, and getsParameter field is converted to definition field by the parameter field in above-mentioned document according to replacement algorithm, wherein, replacement algorithm and dataThe programming language that library uses is related, and by taking data manipulation language as an example, above-mentioned " name " needs are converted to " name ", " passport NO. "It needs to be converted to " ID " etc..Wherein, it about replacement algorithm, needs to carry out bottom anatomy in advance by special developer, for instituteThe parameter field that is likely to occur during some Product Definitions sets corresponding definition field, and establishes parameter field and for its settingThe mapping relations between field are defined, parameter field is converted to the method for defining field as putting using according to above-mentioned mapping relationsScaling method.
Product Definition module 30, for the definition field being converted to be arrived and the production according to preset frame storageIn the database of quality control reason system docking, by the Product Definition to the database.
It for database, pre-sets define the fundamental that a product needs in the database, these are basicElement forms the basic framework of the definition data of a product, using the basic framework as the preset frame of Product Definition.The numberIt is docked according to library with Product Management System, Product Management System by replacement algorithm after obtaining defining field, by these defined wordsIn section storage to above-mentioned database, it can be stored when storage according to said frame, complete the definition of product.
Further, due to after in Product Definition to database, it is understood that there may be the definition field modification of product is deleted etc.Update operation only defines field to the part of defined product and is adjusted.Therefore, Product Definition system is comeIt says, when receiving Product Definition request, it may appear that following two situations:One kind is that the Product Definition asks corresponding product notDefinition is in the database;Another kind is that the Product Definition asks corresponding product to define in the database.For the firstSituation then illustrates definition of this definition operation for new product.For above-mentioned the second situation, then illustrate that this definition operation is toThe definition field of defined product is updated.
It can be exemplified below three kinds therein there are many embodiment and carry out specifically for the different situation of above twoIt is bright.As a kind of embodiment, when receiving Product Definition request, without judging that the Product Definition asks the corresponding product to beIt is no to have defined in field storehouse, redefined as new product.If this operation is to being defined on dataProduct data in library are updated, then can be complete before the product is defined or in the Product Definition by Product Definition personnelInto later, whole fields that define of legacy version are deleted from database.
Alternatively, in another embodiment, which further includes:Data detection module, for detectingThe Product Definition asks whether corresponding product has defined in the database;Product Definition module 30 is additionally operable to:The Product Definition ask corresponding product it is undefined in the database when, by the definition field being converted to according toIn preset frame storage to the database docked with the Product Management System, by the Product Definition to the database.That is, in this embodiment, only the product of mistake undefined in database is defined, this just needs Product Definition peopleMember first deletes the definition field of legacy version, when the definition field to defined product is updated based on product parametersDocument is updated parameter field.In this way, for Product Management System, it, will not when receiving Product Definition requestThe definition field of the product is detected in the database, and the product operation of this definition is the definition of new product.
Alternatively, in other implementations, if the Product Definition asks corresponding product to be defined on the numberAccording in library, then Product Definition module 30 includes:Field comparison unit, definition field and the product for will be converted to are worked asPreceding definition field in the database is compared;Product Definition unit, it is newer fixed for being obtained according to comparing resultAdopted field stores the newer field that defines into the database docked with the Product Management System according to preset frame, withBy the Product Definition to the database.
In this embodiment, when detection Product Definition asks corresponding product to define in the database, it incite somebody to action thisThe definition field that parameter field in the corresponding defined parameters document of secondary request is converted to it is defined fixed in databaseAdopted field is compared, and obtains newer definition field.Specifically, update one of the Product Definition personnel for defined parameters documentAs be that the parameter field in product parameters document is deleted, added or replaced.Accordingly, based on newer defined wordCan be the deletion, addition or replacement of field defined in database during the definition data of section upgrading products.
It is understood that in various embodiments of the present invention, in order to enable by Product Definition to data in the present inventionDevice in library is understood by, and is listed relatively simple parameter field and is illustrated, but in practical application insurance productionDuring product definition device, actual information editor's product parameters document and parameter according to insurance products by Product Definition personnel are neededParameter field in document.
The insurance products definition device that the present embodiment proposes, Product Management System and connection, wherein, the databaseIt is the database for storing Product Definition field, the said goods manage system when receiving Product Definition request, based on thisThe corresponding product parameters document of Product Definition acquisition request, and the product parameters document is parsed, parameter field is got,The parameter field is switched to by definition field according to replacement algorithm, stores the definition field being converted to upper according to preset frameIt states in database, to realize the Product Definition in the database, therefore, for Product Definition personnel, is there is new productWhen needing to be defined, it is only necessary to write product parameters document, not need to carry out DML scripts to write, without carryingVersion updating is handed over to ask and is handed over to special developer's processing, can be realized at any time to the definition of insurance products.
The second embodiment of insurance products definition device of the present invention is proposed based on first embodiment.With reference to shown in Fig. 4, at thisIn embodiment, data conversion module 20 is included with lower unit:
Data resolution unit 21, for parsing the product parameters document with the field that gets parms;
Repetition detection unit 22, for detecting in the product parameters document with the presence or absence of the parameter field repeated;
Date Conversion Unit 23, for there is the parameter repeated in detecting product parameters document in repetition detection unit 22During field, processing is filtered to the parameter field got, and the parameter field after filtering is converted to according to replacement algorithmDefine field.
In this embodiment, after being parsed to product parameters document and getting parameter field, product parameters text is detectedThe parameter field repeated present in shelves, is filtered it processing, specifically, for the Repeating Field detected, adds for itDeletion is added to mark, when the parameter field that parsing obtains is converted to definition field according to replacement algorithm, filters out to have and deleteOther are not had the parameter field deleted except label and are converted to definition field, to avoid being defined by the parameter field of labelThere is the definition field repeated in product data in database, further, Date Conversion Unit 23 includes:
Label addition subelement, if for there is the parameter field repeated, the parameter field addition for the repetition is deletedExcept label;Data conversion subelement, for according to replacement algorithm will parse obtained parameter field be converted to define field when,It filters out with the parameter field for deleting label, the parameter field in addition to label is deleted is based on the displacement calculatesMethod is converted to definition field
For example, comprising " name ", " name " in insurer's information, since the two parameter fields are converted to defined wordSection after, be " name ", therefore, can filter out it is therein any one.The insurance products definition dress that the present embodiment proposesIt puts, before conversion parameter field, to the advance filtration treatment of parameter field in product parameters document, improves in database and produceProduct define the accuracy of data.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior artGoing out the part of contribution can be embodied in the form of software product, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, computer, cloudHold server or the network equipment etc.) method that performs each embodiment of the present invention.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property includes, so that process, method, article or device including a series of elements not only include those elements, andAnd it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device instituteElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including thisAlso there are other identical elements in the process of element, method, article or device.
In addition, the description in " first ", " second " etc. involved in invention only describes purpose, and it is not intended that instruction orImply its relative importance or the implicit quantity for indicating indicated technical characteristic." first ", " second " are defined as a result,At least one this feature can be expressed or be implicitly included to feature.In addition, the technical solution between each embodiment can phaseIt mutually combines, but must can be implemented as basis with those of ordinary skill in the art, when the combination of technical solution occurs mutuallyContradiction or when can not realize should people think that the combination of this technical solution is not present, also not the present invention claims protection domainWithin.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hairThe equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skillsArt field, is included within the scope of the present invention.