CN107945031A - Data handling system and unit of risk data creation method is protected again - Google Patents

Data handling system and unit of risk data creation method is protected again Download PDF

Info

Publication number
CN107945031A
CN107945031A CN201711420295.8A CN201711420295A CN107945031A CN 107945031 A CN107945031 A CN 107945031A CN 201711420295 A CN201711420295 A CN 201711420295A CN 107945031 A CN107945031 A CN 107945031A
Authority
CN
China
Prior art keywords
pending
class
producer
service
consumer
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.)
Granted
Application number
CN201711420295.8A
Other languages
Chinese (zh)
Other versions
CN107945031B (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.)
Taikang Insurance Group Co Ltd
Taikang Online Property Insurance Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Taikang Online Property Insurance Co 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 Taikang Insurance Group Co Ltd, Taikang Online Property Insurance Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201711420295.8A priority Critical patent/CN107945031B/en
Publication of CN107945031A publication Critical patent/CN107945031A/en
Application granted granted Critical
Publication of CN107945031B publication Critical patent/CN107945031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Abstract

It is of the invention to propose a kind of data handling system and protect unit of risk data creation method again, wherein, system includes:Multiple producers corresponding with each directly guarantor end system platform, and the consumer to be communicated by message-oriented middleware with multiple producers;The producer has been previously written general each service moulding plate class, and it has been previously written in configuration file and has realized class, operationally, reading realizes class and obtains class example using reflection technology, obtain in general each service moulding plate class and realize the method that class is related to, required service class is obtained, using service class to being handled from the corresponding straight Pending tasks for protecting the acquisition of end system platform and business datum, generates and sends service message;Consumer uses thread pool and distributes corresponding thread for each service message received, and business processing is carried out to service message using multithreading.Pass through the system, it is possible to increase scalability, improves maintainable, solve that maintenance cost existing in the prior art is high, the technical problem of autgmentability difference.

Description

Data handling system and unit of risk data creation method is protected again
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of data handling system and unit of risk data are protected again Generation method.
Background technology
Unit of risk refers to that maximum loss scope caused by a disaster accident possibility occurs for insurance subject.In order to shift wind Danger, the partial insurance business that insurance company is undertaken, which separates, gives other insurers, therefore accepting insurance, criticizing for end is directly protected by insurance company Change, settle a claim to need to generate and protect unit of risk data again, subsequently to protect the processing of cession again.
Insurance company directly protects end there may be multiple system platforms, such as health insurance system, vehicle insurance system, group insurance system at present Different system platforms, these system platforms such as system have the demand for protecting cession again, therefore are required for generation unit of risk Data.
The each system platform generation unit of risk data in end are directly protected in order to realize, are each system platform in correlation technique The module of individually generation unit of risk is set.In addition, each system platform increase newly protect again unit of risk module mostly be to pass through The code realization of another system platform is replicated, code redundancies are high, cause to need to change when changing what's new multiple straight End system platform is protected, maintenance cost is high, and autgmentability is poor.
The content of the invention
It is contemplated that solve at least some of the technical problems in related technologies.
For this reason, first purpose of the present invention is to propose a kind of data handling system, it is logical by being write in the producer Each service moulding plate class, and be previously written in configuration file and realize class, realize that class and class example are i.e. available by reading Required service class, so that directly protecting newly-increased system platform extension in end, the business of protecting becomes abnormal convenient again, improves expansible Property;Consumer is uniformly processed generation different system platform and protects unit of risk data again, and the modification to consumer is independent of each A system platform, reduces maintenance cost, improves maintainable, solves that maintenance cost existing in the prior art is high, autgmentability is poor Technical problem.
Second object of the present invention is to propose that one kind protects unit of risk data creation method again.
Third object of the present invention is to propose that another kind protects unit of risk data creation method again.
Fourth object of the present invention is to propose a kind of computer equipment.
The 5th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 6th purpose of the present invention is to propose another computer equipment.
The 7th purpose of the present invention is to propose another non-transitorycomputer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of data handling system, including:With it is each straight Protect the corresponding multiple producers of end system platform, and the consumer to communicate by message-oriented middleware with multiple producers;
The producer, is arranged on the server of corresponding straight guarantor's end system platform, has been previously written general each service Template class, and be previously written in configuration file and realized class, for operationally, reading to realize class and uses reflection technology Class example is obtained, and obtains and realizes the method that class is related to described in general each service moulding plate class, obtains required service class, with Using the service class to being handled from the corresponding straight Pending tasks for protecting the acquisition of end system platform and business datum, generation is concurrent Send service message;
The consumer, is arranged at and protects again on the server of end system platform, uses thread pool as each business for receiving Message distributes corresponding thread, and business processing is carried out to service message using multithreading.
The data handling system of the embodiment of the present invention, by for it is straight protect each system platform in end set the corresponding producer with And the consumer to be communicated by message-oriented middleware with multiple producers, general each service mould is previously written in the producer Plate class, and be previously written in configuration file and realize class, operationally, reading realizes class and obtains class reality using reflection technology Example, and obtains in general each service moulding plate class and realizes that the method that class is related to obtains required service class, using service class to from right The Pending tasks and business datum that the system platform answered obtains are handled, and generate and send service message, then protect the consumption at end Person docks received each service message and carries out business processing using multithreading.By writing general each clothes in the producer Business template class, and be previously written in configuration file and realize class, realize that class and class example can obtain required clothes by reading Business class, it is possible to increase straight protect in end increases the convenience that business is protected in system platform extension again newly, improves scalability;Consumer unites One processing generation different system platform protects unit of risk data again, the modification to consumer independent of each system platform, Maintenance cost is reduced, improves maintainability, solves that maintenance cost existing in the prior art is high, the technology of autgmentability difference Problem.
In order to achieve the above object, second aspect of the present invention embodiment proposes one kind protects unit of risk data creation method again, Applied to the producer in data handling system described in first aspect embodiment, including:
The producer reads the Pending tasks of fixed strip number using timed task from corresponding straight guarantor's end system platform;
Type of service and service numbers of the producer according to described in Pending tasks, inquire about corresponding straight guarantor's end system platform Business datum, obtain pending business datum;
The producer generates service message according to the pending business datum;
The producer sends the service message to consumer, so that the consumer in the service message to treating The business datum of processing is handled, and unit of risk data are protected in generation again.
The embodiment of the present invention protects unit of risk data creation method again, and the producer is by using timed task from corresponding The straight Pending tasks protected end system platform and read fixed strip number, type of service and service numbers according to described in Pending tasks, are looked into The corresponding straight business datum for protecting end system platform is ask, obtains pending business datum, and according to pending business datum, it is raw Into service message, service message is sent to consumer so that consumer to the pending business datum in service message into Unit of risk data are protected in row processing, generation again.On the one hand, when newly-increased system platform, only it need to increase the corresponding producer and write Enter corresponding Pending tasks, improve scalability;On the other hand, unit of risk is protected again using unified consumer's generation Data, the modification to consumer improve maintainability independent of each system platform.
In order to achieve the above object, third aspect present invention embodiment proposes another kind protects unit of risk data generation side again Method, applied to the consumer in the data handling system described in first aspect embodiment, including:
Consumer receives the service message that the producer sends, wherein, the service message includes pending business datum;
The consumer query handles daily record, to determine to whether there is the pending business number in the processing daily record According to;
If the pending business datum is not present in the processing daily record, the consumer is to the pending industry Data of being engaged in carry out business processing, then are protected unit of risk data, and are stored in the database;
The pending business datum is added in the processing daily record by the consumer.
The embodiment of the present invention protects unit of risk data creation method again, and consumer is by receiving including for producer's transmission The service request of pending business datum, query processing daily record determine to whether there is pending business number in processing daily record According to, and when pending business datum is not present in handling daily record, business processing is carried out to pending business datum and is obtained Unit of risk data are protected again and are stored in the database, and pending business datum is added in processing daily record.Pass through In processing daily record is first checked before handling business datum whether existing pending business datum, and do not exist When just pending business datum is handled, can avoid reprocessing pending business datum, save process resource, Improve treatment effeciency.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of computer equipment, including:Memory, place The computer program managed device and storage on a memory and can run on a processor, when the processor performs described program, Realization protects unit of risk data creation method again as described in second aspect embodiment.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, is realized when which is executed by processor and protects danger again as described in second aspect embodiment Dangerous unit data generation method.
In order to achieve the above object, sixth aspect present invention embodiment proposes another computer equipment, memory, processor And the computer program that can be run on a memory and on a processor is stored, when the processor performs described program, realize Unit of risk data creation method is protected again as described in third aspect embodiment.
In order to achieve the above object, seventh aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, is realized when which is executed by processor and protects danger again as described in third aspect embodiment Dangerous unit data generation method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
The structure diagram for the data handling system that Fig. 1 is provided by the embodiment of the present invention one;
The flow diagram for protecting unit of risk data creation method again that Fig. 2 is provided by the embodiment of the present invention one;
The flow diagram for protecting unit of risk data creation method again that Fig. 3 is provided by the embodiment of the present invention two;
The flow diagram for protecting unit of risk data creation method again that Fig. 4 is provided by the embodiment of the present invention three;
Fig. 5 is the configuration diagram of the data handling system of a specific embodiment of the invention;
Fig. 6 is a kind of structure diagram for computer equipment that one embodiment of the invention proposes;And
Fig. 7 is the structure diagram for another computer equipment that one embodiment of the invention proposes.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings describe the data handling system of the embodiment of the present invention and protect unit of risk data creation method again.
The structure diagram for the data handling system that Fig. 1 is provided by the embodiment of the present invention one.
As shown in Figure 1, the data handling system 10 includes:Multiple producers corresponding with each directly guarantor end system platform 110, and the consumer 130 to be communicated by message-oriented middleware 120 with multiple producers 110.Wherein,
The producer 110 is arranged on the server of corresponding straight guarantor's end system platform, has been previously written general each service mould Plate class, and be previously written in configuration file and realized class, for operationally, reading to be realized class and obtained using reflection technology Class example is taken, and obtains in general each service moulding plate class and realizes the method that class is related to, obtains required service class, with using clothes To being handled from the corresponding straight Pending tasks for protecting the acquisition of end system platform and business datum, the business of generating and sending disappears business class Breath.
Consumer 130 is arranged to be protected on the server of end system platform again, is used thread pool and is disappeared for each business received Breath distributes corresponding thread, and business processing is carried out to service message using multithreading.
Specifically, the producer 110 uses reflection technology, and class and general each clothes are realized according to what is read from configuration file Business template class, dynamic creation Pending tasks service class and business service class, wherein, Pending tasks service class is used for Pending tasks Handled, business service class is used to handle business datum.
In the present embodiment, one corresponding producer 110, each system are set for straight each system platform protected in end Platform unite only as the data source side for protecting business again, writes Pending tasks, and is not involved in the related processing procedure for protecting business again.
The straight each system platform in end of protecting has preservation and manages Pending tasks, Pending tasks are filed, accepts insurance and corrects The function for business datum of settling a claim.When directly protect each system platform in end accepted insurance, correct, settle a claim operate when, Pending tasks are write Enter Pending tasks table, such as, group insurance system database corresponds to mysql databases, then writes Pending tasks table to corresponding mysql Database;Vehicle insurance system database corresponds to oracle database, then writes Pending tasks table to corresponding oracle database.Its In, the composition of Pending tasks can include:Type of service (accept insurance, correct, settling a claim), service numbers (corresponding number of policy, batch odd numbers, Pay for Reference Number), source platform's (mark of each platform), transmission times, task status (it is untreated, handling, be processed, lose Lose), version number's (optimism lock use), founder, creation time, modification people, modification time.Handle successful Pending tasks data It is archived in Pending tasks filing table, the structure and the composition structure phase of Pending tasks of the data in Pending tasks filing table Together.It is straight to protect accepting insurance for end and correct Claims Resolution business datum and be stored in each system platform.
The producer 110 is deployed on the server of each system platform as a process, and a system platform corresponds to one A producer 110.The function of the producer 110 includes reading Pending tasks table, optimistic lock renewal Pending tasks list processing state, looks into Inquiry accepts insurance and corrects Claims Resolution data, sends message, renewal Pending tasks table and file Pending tasks, overtime compensation task etc..Production Person 110 is directed to the differentiation function of each system platform, is realized by prototype pattern, configurationization and reflection technology, it is not necessary to repair Change the versatility code of the producer 110, it is only necessary to which what corresponding interface was realized in extension realizes class, you can support a new system platform Producer's function.
For example, setting a configuration file service.properties, the two complete class name for realizing class difference are defined For:
ReinsTaskService=com.taikang.reinsurance.service.ReinsTa skServiceImpl
ReinsDataService=com.taikang.reinsurance.service.ReinsDa taServiceImpl
The example of class is obtained using reflection technology, the value of value is obtained from configuration file, such as value= com.taikang.reinsurance.service.ReinsDataServiceImpl;Object bean= Class.forName(value).newInstance();
The general service moulding plate class of the two service Similar integrals.Thus, it is only necessary to which the method for heavily loaded differentiation realizes class, leads to Configuration file dynamic access class example is crossed, calls corresponding method, you can realizes new straight guarantor's end system with differentiation The producer of platform.
The producer 110 reads Pending tasks from corresponding system platform, and is accepted insurance according to Pending tasks inquiry and correct reason Pay for data.General each service moulding plate class has been previously written in the producer 110, and realization has been previously written in configuration file Class, can be from configuration file when the producer 110 needs to handle the Pending tasks and business datum of different system platform Class is realized in middle reading, and class and general each service moulding plate class, dynamic are realized in conjunction with what reflection technology was read from configuration file Pending tasks service class and business service class are created, can easily realize and the corresponding producer is disposed in each system platform, For example the corresponding producer of group insurance is disposed in group insurance system platform, the corresponding production of vehicle insurance is disposed in vehicle insurance system platform Person.And then class and business service class are serviced to the Pending tasks and business that are obtained from system platform using the Pending tasks of establishment Data are handled, and generate and send service message.
The service message that the producer 110 sends is reached through message-oriented middleware 120 to be protected on the server of end system platform again Consumer 130, and service message is handled by consumer 130 and protects unit of risk data again to generate.Consumer 130 uses line Each service message that Cheng Chiwei is received distributes corresponding thread, and per thread handles a service message, and generation is corresponding again Protect unit of risk data, the unit of risk data of protecting again of generation can be uniformly stored in and protect the database at end again by consumer 130 In cluster.
The data handling system of the present embodiment, by setting the corresponding producer for each system platform in straight guarantor end and leading to The consumer that message-oriented middleware communicates with multiple producers is crossed, general each service moulding plate is previously written in the producer Class, and be previously written in configuration file and realize class, operationally, reading realizes class and obtains class example using reflection technology, And obtain in general each service moulding plate class and realize that the method that class is related to obtains required service class, using service class to from corresponding The Pending tasks and business datum that system platform obtains are handled, and generate and send service message, then protect the consumer couple at end Each service message received carries out business processing using multithreading.By writing general each service mould in the producer Plate class, and be previously written in configuration file and realize class, realize that class and class example can obtain required service class by reading, Straight protect in end can be improved and increase the convenience that business is protected in system platform extension again newly, improve scalability;At consumer is unified Reason generation different system platform protects unit of risk data again, and the modification to consumer is reduced independent of each system platform Maintenance cost, improves maintainability, solves that maintenance cost existing in the prior art is high, the technology of autgmentability difference is asked Topic.
In order to realize above-described embodiment, the present invention also proposes that one kind protects unit of risk data creation method again.
The flow diagram for protecting unit of risk data creation method again that Fig. 2 is provided by the embodiment of the present invention one, the party Method is applied to the producer 110 in the data handling system 10 described in above-described embodiment.
Comprise the following steps as shown in Fig. 2, this protects unit of risk data creation method again:
Step 201, the producer uses timed task from corresponding straight pending for protecting end system platform and reading fixed strip number Business.
Wherein, the bar for the Pending tasks that the producer can be read from the straight time interval for protecting end system platform reading Pending tasks Number can be preset, and the present invention is not restricted the specific value of time interval and bar number.
In the present embodiment, the producer can start a timed task thread, according to default time interval (such as 30 Second), according to the sequencing of the creation time of Pending tasks in Pending tasks table, fixed strip is once read from Pending tasks table The Pending tasks of number (such as 1000).Wherein, once reading the bar number of Pending tasks can be arranged in configuration file, produce Bar number value is obtained when person runs from configuration file.
Step 202, type of service and service numbers of the producer according to described in Pending tasks, inquires about corresponding straight guarantor's end system The business datum of platform, obtains pending business datum.
After the producer have read Pending tasks, Pending tasks are analyzed, are therefrom obtained described in Pending tasks Type of service and service numbers, and according to type of service and the corresponding straight business datum for protecting end system platform of service numbers inquiry.Such as Type of service is type of insuring, then the business datum of insuring that query generation declaration form unit of risk needs;Type of service is to correct class Type, then what the single unit of risk of query generation batch needed corrects business datum;Type of service is Claims Resolution type, then query generation is settled a claim Pending unit of risk, the Claims Resolution Claims Resolution business datum that certainly unit of risk needs.
Step 203, the producer generates service message according to pending business datum.
In the present embodiment, after the producer obtains business datum, business can be generated according to pending business datum Message.For example the pending business datum of acquisition can be assembled into data transfer object (Data Transfer by the producer Object, DTO), business datum is converted into service message.
Step 204, the producer sends service message to consumer, so that consumer is to the pending industry in service message Business data are handled, and unit of risk data are protected in generation again.
The service message of generation is sent to consumer by the producer, so that consumer is to the pending business in service message Data carry out processing generation and protect unit of risk data again.
The present embodiment protects unit of risk data creation method again, and the producer directly protects by using timed task from corresponding End system platform reads the Pending tasks of fixed strip number, type of service and service numbers according to described in Pending tasks, inquiry pair The business datum of end system platform should be directly protected, obtains pending business datum, and according to pending business datum, generate industry Be engaged in message, service message is sent to consumer so that consumer to the pending business datum in service message at Unit of risk data are protected in reason, generation again.On the one hand, when newly-increased system platform, the corresponding producer and write-in pair need to only be increased The Pending tasks answered, improve scalability;On the other hand, unit of risk number is protected again using unified consumer's generation According to the modification to consumer improves maintainability independent of each system platform.
The flow diagram for protecting unit of risk data creation method again that Fig. 3 is provided by the embodiment of the present invention two.
It may comprise steps of as shown in figure 3, this protects unit of risk data creation method again:
Step 301, the producer uses timed task from corresponding straight pending for protecting end system platform and reading fixed strip number Business.
It should be noted that the description in the present embodiment to step 301 may refer in previous embodiment to step 201 Description, details are not described herein again.
Step 302, the producer changes the corresponding straight Pending tasks table protected in end system platform, amended Pending tasks table In have differences before the opposite modification of the version numbers of Pending tasks that is handling, to mark the Pending tasks handled.
In the present embodiment, the producer, can be to pending after corresponding straight guarantor's end system platform reads out Pending tasks Task list is modified, so that amended Pending tasks table is different from the Pending tasks table before modification.
Specifically, the producer can use the optimistic lock mechanism that version number adds 1, by the shape of some Pending tasks of reading State is updated to handling, and the processing of current Pending tasks is exited if failure is updated, continues with next Pending tasks.
Step 303, type of service and service numbers of the producer according to described in Pending tasks, inquires about corresponding straight guarantor's end system The business datum of platform, obtains pending business datum.
Step 304, the producer generates service message according to pending business datum.
It should be noted that the description in the present embodiment to step 303- steps 304 may refer to it is right in previous embodiment The description of step 202- steps 203, details are not described herein again.
Step 305, the producer sends service message to consumer, so that consumer is to the pending industry in service message Business data are handled, and unit of risk data are protected in generation again.
In the present embodiment, the producer is obtained after service message, you can sends service message to consumer.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, the producer sends service message to consumer Afterwards, the completed Pending tasks of consumer can also be directed to, change the corresponding straight Pending tasks table protected in end system platform, with Make in amended Pending tasks table, completed the Pending tasks of processing labeled as completion status.Meanwhile the producer will mark File for the Pending tasks of completion status into the Pending tasks filing table of corresponding straight guarantor's end system platform.In the present embodiment, The producer can provide a filing Pending tasks interface called for consumer, and Pending tasks are completed to be handled in consumer When, the state for updating Pending tasks in Pending tasks table is completion status, and is filed to Pending tasks and file table.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, the producer sends service message to consumer Afterwards, transmission result that can also be to service message is monitored, if service message sends failure, the producer is again to consumption Person sends service message.If the number for resending service message reaches threshold number (such as 6 times), alternatively, service message Send successfully, but the handling duration of consumer is more than threshold value duration (such as 30 minutes) after sending successfully, it is determined that there are exception, Wherein, it is probably that service message is lost to exist abnormal, or processing procedure is abnormal.When determining to have abnormal, the producer resets The state of Pending tasks is untreated state, so that timed task thread can again read off Pending tasks.
The present embodiment protects unit of risk data creation method again, by the producer using timed task from corresponding straight Protect after the Pending tasks that end system platform reads fixed strip number, change the corresponding straight Pending tasks table protected in end system platform, Had differences before the opposite modification of the version number for the Pending tasks for making handling in amended Pending tasks table, to mark The Pending tasks of processing, can effectively recognize the Pending tasks handled in Pending tasks table, avoid Pending tasks from being repeated Read.By obtaining pending business datum, and according to pending business datum, service message is generated, by service message Consumer is sent to, so that consumer handles the pending business datum in service message, generation is protected dangerous single again Position data, it is possible to increase the scalability and maintainability of system.
In order to realize above-described embodiment, the present invention also proposes that another kind protects unit of risk data creation method again.
The flow diagram for protecting unit of risk data creation method again that Fig. 4 is provided by the embodiment of the present invention three, the party Method is applied to the consumer 130 of the data handling system 10 described in previous embodiment.
Comprise the following steps as shown in figure 4, this protects unit of risk data creation method again:
Step 401, consumer receives the service message that the producer sends, wherein, service message includes pending business Data.
In the present embodiment, after the producer generates service message, service message is sent to consumer.Consumer receives life The service message that production person sends.Consumer can dock received service message and be analyzed, and therefrom extract pending industry Business data.
Step 402, consumer query processing daily record, to determine to whether there is pending business datum in processing daily record.
, can first query processing day before consumer handles the pending business datum included in service message Will, with determine processing daily record in whether existing pending business datum.When handling in daily record, there are pending industry During data of being engaged in, then it is assumed that the pending business datum has been processed, and abandons the processing this time to pending business datum.
In the present embodiment, consumer can judge to handle according to the type of service and service numbers of pending business datum It whether there is corresponding business datum in daily record, and abandon this time handling in the presence of, just handled in the presence of not pending Business datum.
Step 403, if being not present pending business datum in processing daily record, consumer to pending business datum into Row business processing, then unit of risk data are protected, and stored in the database.
When consumer by query processing daily record determines that pending business datum is not present in processing daily record, then consume Person carries out business processing to pending business datum, obtains and the type of service of pending business datum is matched protects danger again Dangerous unit data, and unit of risk data will be protected again be stored in and protect again in the database at end.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, consumer to pending business datum into Row processing is protected after unit of risk data again, and consumer can also call according to the interface IP address carried in service message The interface of the producer of service message is sent, so that the producer changes the corresponding straight Pending tasks table protected in end system platform, is repaiied In Pending tasks table after changing, the Pending tasks of processing have been completed labeled as completion status, and will be labeled as completion status Pending tasks file to the corresponding straight Pending tasks filing table protected in end system platform.When producer's completion has been to mark Into state Pending tasks filing when, consumer by Pending tasks file to consumption daily record.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, if consumer is to pending business number According to business processing failure is carried out, consumer can be with misregistration information into error log, in order to be checked during later maintenance.
Step 404, pending business datum is added in processing daily record by consumer.
For handling successfully pending business datum, pending business datum can be added to processing by consumer In daily record.
Can be added to during the pending business datum corresponding failure of setting handled in daily record as a kind of example Between when small (such as 2), the out-of-service time can be previously written in configuration file, read when needed from configuration file.Work as addition When the duration that pending business datum into processing daily record is stored in processing daily record reaches the out-of-service time, remove pending Business datum, or reach the pending business datum of out-of-service time and remain in processing daily record, but consumer is rear Before the new pending business datum of continuous processing, the out-of-service time that has reached no longer stored in query processing daily record waits to locate The business datum of reason.
The present embodiment protects unit of risk data creation method again, and consumer waits to locate by receiving including for producer's transmission The service request of the business datum of reason, query processing daily record, which determines to handle in daily record, whether there is pending business datum, and When pending business datum is not present in handling daily record, business processing is carried out to pending business datum and is protected danger again Dangerous unit data is simultaneously stored in the database, and pending business datum is added in processing daily record.By to industry Business data handled before first check processing daily record in whether existing pending business datum, and in the presence of not ability it is right Pending business datum is handled, and can avoid reprocessing pending business datum, saves process resource, at raising Manage efficiency.
Fig. 5 is the configuration diagram of the data handling system of a specific embodiment of the invention, which passes through Perform it is above-mentioned protect unit of risk data creation method again, protect the quick of the corresponding producer of end system platform to reach straight and expand The purpose of unit of risk data is protected in exhibition, and the unified generation of consumer again.Data handling system shown in Fig. 5 is only with including one It is straight to protect end system platform and a corresponding producer, a consumer as an example, but the description based on previous embodiment It should be appreciated that data handling system can include multiple straight guarantor's end system platforms, and each straight end system platform of protecting corresponds to one The producer, multiple producers correspond to same consumer.
As shown in figure 5, directly protecting end system platform includes Pending tasks table, protects to criticize and pay for data and Pending tasks filing table, treat Do and Pending tasks are recorded in task list, the Pending tasks for having completed processing are recorded in Pending tasks filing table.When the producer runs, Pending tasks table is read from corresponding straight end system platform of protecting, therefrom reads Pending tasks, and treat using optimistic lock mechanism renewal Do the processing state of task list, and protected according to Pending tasks inquiry and batch pay for data, generate service message and through Kafka message among Service message is sent to consumer by part.Consumer receives service message and carries out idempotent verification to service message, to determine place It whether there is pending business datum in reason daily record, and business processing life carried out to pending business datum in the presence of not Batch unit of risk data are paid for into protecting, and unit of risk data are recorded in consumption daily record, while by corresponding pending industry Business data are recorded in processing daily record.Consumer is also using timed task filing consumption daily record and Pending tasks table, so that production The straight Pending tasks filing table for protecting end system platform of person's renewal.
It should be noted that the specific work process of the producers and consumers in above-mentioned example in data handling system can With referring to previous embodiment, to protecting the description of unit of risk data creation method again, details are not described herein again.
The data handling system of the present embodiment has preferable scalability and maintainability, on the one hand, when newly-increased system During platform, only it need to increase the corresponding producer and write corresponding Pending tasks, improve scalability;On the other hand, Unit of risk data are protected again using unified consumer's generation, and the modification to consumer is improved independent of each system platform Maintainability.
In order to realize above-described embodiment, the present invention also proposes a kind of computer equipment.
Fig. 6 is a kind of structure diagram for computer equipment that one embodiment of the invention proposes.As shown in fig. 6, the calculating Machine equipment 60 includes:Memory 601, processor 602 and it is stored in the meter that can be run on memory 601 and on processor 602 Calculation machine program 603, when processor 602 performs described program, realizes that unit of risk data of protecting again as in the foregoing embodiment are given birth to Into method, this method is applied to the producer in data handling system.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, realizes that unit of risk data of protecting again as in the foregoing embodiment generate when which is executed by processor Method, this method are applied to the producer in data handling system.
In order to realize above-described embodiment, the present invention also proposes another computer equipment.
Fig. 7 is the structure diagram for another computer equipment that one embodiment of the invention proposes.As shown in fig. 7, the meter Calculating machine equipment 70 includes:Memory 701, processor 702 and it is stored on memory 701 and can be run on processor 702 Computer program 703, processor 702 perform described program when, realize as in the foregoing embodiment protect unit of risk data again Generation method, this method are applied to the consumer in data handling system.
In order to realize above-described embodiment, the present invention also proposes another non-transitorycomputer readable storage medium, thereon Computer program is stored with, realizes that unit of risk data of protecting again as in the foregoing embodiment are given birth to when which is executed by processor Into method, this method is applied to the consumer in data handling system.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature Close and combine.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (12)

  1. A kind of 1. data handling system, it is characterised in that including with it is each it is straight protect the corresponding multiple producers of end system platform, with And the consumer to be communicated by message-oriented middleware with multiple producers;
    The producer, is arranged on the server of corresponding straight guarantor's end system platform, has been previously written general each service moulding plate Class, and be previously written in configuration file and realized class, for operationally, reading to be realized class and obtained using reflection technology Class example, and obtain and realize the method that class is related to described in general each service moulding plate class, required service class is obtained, to use The service class generates and sends industry to being handled from the corresponding straight Pending tasks for protecting the acquisition of end system platform and business datum Business message;
    The consumer, is arranged at and protects again on the server of end system platform, uses thread pool as each service message for receiving Corresponding thread is distributed, business processing is carried out to service message using multithreading.
  2. 2. data handling system according to claim 1, it is characterised in that
    The producer, specifically for using reflection technology, class and general each clothes are realized according to what is read from configuration file Business template class, dynamic creation Pending tasks service class and business service class;
    Wherein, the Pending tasks service class, for handling the Pending tasks;
    The business service class, for handling the business datum.
  3. 3. one kind protects unit of risk data creation method again, it is characterised in that applied to data as claimed in claim 1 or 2 The producer in processing system, the described method comprises the following steps:
    The producer reads the Pending tasks of fixed strip number using timed task from corresponding straight guarantor's end system platform;
    Type of service and service numbers of the producer according to described in Pending tasks, inquire about the corresponding straight industry for protecting end system platform Business data, obtain pending business datum;
    The producer generates service message according to the pending business datum;
    The producer sends the service message to consumer, so that the consumer is to pending in the service message Business datum handled, generation protect unit of risk data again.
  4. 4. according to claim 3 protect unit of risk data creation method again, it is characterised in that the producer is using fixed When task after the corresponding straight Pending tasks protected end system platform and read fixed strip number, further include:
    The producer changes the corresponding straight Pending tasks table protected in end system platform, is locating in amended Pending tasks table Had differences before the opposite modification of the version number of the Pending tasks of reason, with the Pending tasks handled described in mark.
  5. 5. according to claim 3 protect unit of risk data creation method again, it is characterised in that the producer is to consumption After person sends the service message, further include:
    The Pending tasks of processing are completed for the consumer, the producer changes corresponding straight protect in end system platform and treats Do task list, in amended Pending tasks table, the Pending tasks for having completed processing are labeled as completion status;
    The producer will file to corresponding straight pending protected in end system platform labeled as the Pending tasks of completion status Business filing table.
  6. 6. according to claim 3 protect unit of risk data creation method again, it is characterised in that the producer is to consumption After person sends the service message, further include:
    If sending failure, the producer sends the service message to the consumer again;
    If resending number reaches threshold number, alternatively, consumer's handling duration is more than threshold value duration after sending successfully, Determine to exist abnormal.
  7. 7. one kind protects unit of risk data creation method again, it is characterised in that applied to data as claimed in claim 1 or 2 Consumer in processing system, the described method comprises the following steps:
    Consumer receives the service message that the producer sends, wherein, the service message includes pending business datum;
    The consumer query handles daily record, to determine to whether there is the pending business datum in the processing daily record;
    If the pending business datum is not present in the processing daily record, the consumer is to the pending business number According to progress business processing, then unit of risk data are protected, and stored in the database;
    The pending business datum is added in the processing daily record by the consumer.
  8. 8. according to claim 7 protect unit of risk data creation method again, it is characterised in that described to be protected danger again After unit data, further include:
    The consumer calls the producer's of the transmission service message according to the interface IP address carried in the service message Interface, so that the producer, which changes, corresponds to the straight Pending tasks table protected in end system platform, in amended Pending tasks table, The Pending tasks for having completed processing labeled as completion status, and by labeled as the Pending tasks of completion status file to The corresponding straight Pending tasks filing table protected in end system platform;
    When the producer completes to file the mark for the Pending tasks of completion status, the consumer treats described The task of doing is filed to consumption daily record.
  9. 9. a kind of computer equipment, it is characterised in that including memory, processor and storage on a memory and can be in processor The computer program of upper operation, when the processor performs described program, is realized as any one of claim 3-6 again Protect unit of risk data creation method.
  10. 10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program Realized when being executed by processor and protect unit of risk data creation method again as any one of claim 3-6.
  11. 11. a kind of computer equipment, it is characterised in that on a memory and can handled including memory, processor and storage The computer program run on device, when the processor performs described program, realization protects danger again as claimed in claim 7 or 8 Dangerous unit data generation method.
  12. 12. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program Realized when being executed by processor and protect unit of risk data creation method again as claimed in claim 7 or 8.
CN201711420295.8A 2017-12-25 2017-12-25 Data processing system and method for generating reinsurance risk unit data Active CN107945031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711420295.8A CN107945031B (en) 2017-12-25 2017-12-25 Data processing system and method for generating reinsurance risk unit data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711420295.8A CN107945031B (en) 2017-12-25 2017-12-25 Data processing system and method for generating reinsurance risk unit data

Publications (2)

Publication Number Publication Date
CN107945031A true CN107945031A (en) 2018-04-20
CN107945031B CN107945031B (en) 2021-02-12

Family

ID=61940093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711420295.8A Active CN107945031B (en) 2017-12-25 2017-12-25 Data processing system and method for generating reinsurance risk unit data

Country Status (1)

Country Link
CN (1) CN107945031B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597678A (en) * 2018-10-09 2019-04-09 阿里巴巴集团控股有限公司 Task processing method and device
CN109976895A (en) * 2019-04-09 2019-07-05 苏州浪潮智能科技有限公司 A kind of Multi-task Concurrency treating method and apparatus of database
CN110765167A (en) * 2019-10-23 2020-02-07 泰康保险集团股份有限公司 Policy data processing method, device and equipment
CN111221817A (en) * 2019-12-25 2020-06-02 中国平安财产保险股份有限公司 Service information data storage method and device, computer equipment and storage medium
CN111818112A (en) * 2019-04-11 2020-10-23 中国移动通信集团四川有限公司 Kafka system-based message sending method and device
CN112084048A (en) * 2020-09-25 2020-12-15 中国建设银行股份有限公司 Kafka synchronous disk refreshing method and device and message server
CN112182106A (en) * 2020-09-28 2021-01-05 中国平安人寿保险股份有限公司 Insurance business data processing method, system, device and storage medium
CN112333087A (en) * 2020-11-18 2021-02-05 平安消费金融有限公司 Consumption message processing method and related equipment
CN114513504A (en) * 2022-04-06 2022-05-17 广联达科技股份有限公司 Message queue multi-cloud adaptation method, device and equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925523B1 (en) * 2000-09-11 2011-04-12 Safeco Corporation Method and system for providing insurance policies via a distributed computing network
CN105530125A (en) * 2015-12-12 2016-04-27 公安部交通管理科学研究所 Internetwork data exchange system
CN106384290A (en) * 2016-08-31 2017-02-08 泰康保险集团股份有限公司 Insurance policy processing system, method and device
US20170053354A1 (en) * 2015-08-21 2017-02-23 Revolution Group, Inc. Licensing manager
CN107329991A (en) * 2017-06-07 2017-11-07 武汉斗鱼网络科技有限公司 A kind of list access to web page and methods of exhibiting and its system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925523B1 (en) * 2000-09-11 2011-04-12 Safeco Corporation Method and system for providing insurance policies via a distributed computing network
US20170053354A1 (en) * 2015-08-21 2017-02-23 Revolution Group, Inc. Licensing manager
CN105530125A (en) * 2015-12-12 2016-04-27 公安部交通管理科学研究所 Internetwork data exchange system
CN106384290A (en) * 2016-08-31 2017-02-08 泰康保险集团股份有限公司 Insurance policy processing system, method and device
CN107329991A (en) * 2017-06-07 2017-11-07 武汉斗鱼网络科技有限公司 A kind of list access to web page and methods of exhibiting and its system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘新宇: "基于Rete规则引擎的保险核算系统设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597678A (en) * 2018-10-09 2019-04-09 阿里巴巴集团控股有限公司 Task processing method and device
CN109976895A (en) * 2019-04-09 2019-07-05 苏州浪潮智能科技有限公司 A kind of Multi-task Concurrency treating method and apparatus of database
CN111818112A (en) * 2019-04-11 2020-10-23 中国移动通信集团四川有限公司 Kafka system-based message sending method and device
CN110765167A (en) * 2019-10-23 2020-02-07 泰康保险集团股份有限公司 Policy data processing method, device and equipment
CN110765167B (en) * 2019-10-23 2022-07-22 泰康保险集团股份有限公司 Policy data processing method, policy data processing device and policy data processing equipment
CN111221817A (en) * 2019-12-25 2020-06-02 中国平安财产保险股份有限公司 Service information data storage method and device, computer equipment and storage medium
CN111221817B (en) * 2019-12-25 2023-08-22 中国平安财产保险股份有限公司 Service information data storage method, device, computer equipment and storage medium
CN112084048A (en) * 2020-09-25 2020-12-15 中国建设银行股份有限公司 Kafka synchronous disk refreshing method and device and message server
CN112182106A (en) * 2020-09-28 2021-01-05 中国平安人寿保险股份有限公司 Insurance business data processing method, system, device and storage medium
CN112182106B (en) * 2020-09-28 2023-11-28 中国平安人寿保险股份有限公司 Insurance business data processing method, system, device and storage medium
CN112333087A (en) * 2020-11-18 2021-02-05 平安消费金融有限公司 Consumption message processing method and related equipment
CN114513504A (en) * 2022-04-06 2022-05-17 广联达科技股份有限公司 Message queue multi-cloud adaptation method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN107945031B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN107945031A (en) Data handling system and unit of risk data creation method is protected again
CA2376249A1 (en) Data management system
CN110390525A (en) The direct access method and block chain node of block chain world state
CN105095263A (en) Generation method for card number and apparatus thereof
CN110543787A (en) Storage and acquisition method, storage system and acquisition device for commodity traceability data
CN109446202A (en) Identifier allocation method, device, server and storage medium
CN108564345B (en) Insurance platform data processing method, electronic device and computer readable storage medium
CN108038550A (en) Work order information report method, device and electronic equipment
CN109740304A (en) A kind of vehicle diagnosis right management method and relevant device
CN108198078A (en) The processing method and system of reinsurance business
CN112328406B (en) Micro-service distributed transaction system based on TCC (TCC) and service processing method
CN107767196A (en) A kind of driver identification verification method and server
CN106791932B (en) Distributed trans-coding system, method and device thereof
CN107122362A (en) Cloud database resource extends the method and system with service extension
JP4217222B2 (en) Integrated business system
CN109729015A (en) Data processing method and its device
CN108090733A (en) A kind of method and apparatus realized vehicle insurance and directly paid for
CN110580650B (en) Entrance ticket circulation method and system based on block chain and storage medium
CN104636345A (en) Database reading and writing method based on distributed cache
EP1229423B1 (en) Method for providing an individual device code to an electronic device
CN109901933A (en) The operating method and device of operation system, storage medium, electronic device
CN110769121B (en) Virtual number validity period determining method and device, electronic equipment and storage medium
KR20090073267A (en) Management system of car for internet
JP7135893B2 (en) Vehicle information management system
KR20000072565A (en) Car management system on internet

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Floor 36, Zheshang Building, No. 718 Jianshe Avenue, Jiang'an District, Wuhan, Hubei 430019

Patentee after: TK.CN INSURANCE Co.,Ltd.

Patentee after: TAIKANG INSURANCE GROUP Co.,Ltd.

Address before: Taikang Life Building, 156 fuxingmennei street, Xicheng District, Beijing 100031

Patentee before: TAIKANG INSURANCE GROUP Co.,Ltd.

Patentee before: TK.CN INSURANCE Co.,Ltd.