CN107945031B - Data processing system and method for generating reinsurance risk unit data - Google Patents

Data processing system and method for generating reinsurance risk unit data Download PDF

Info

Publication number
CN107945031B
CN107945031B CN201711420295.8A CN201711420295A CN107945031B CN 107945031 B CN107945031 B CN 107945031B CN 201711420295 A CN201711420295 A CN 201711420295A CN 107945031 B CN107945031 B CN 107945031B
Authority
CN
China
Prior art keywords
service
handled
data
producer
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.)
Active
Application number
CN201711420295.8A
Other languages
Chinese (zh)
Other versions
CN107945031A (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

Images

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

The invention provides a data processing system and a method for generating reinsurance danger unit data, wherein the system comprises: a plurality of producers corresponding to the respective direct protection system platforms, and consumers communicating with the plurality of producers through message middleware; the method comprises the following steps that a producer writes all universal service template classes in advance, writes implementation classes in a configuration file in advance, reads the implementation classes and obtains class instances by adopting a reflection technology during operation, obtains methods related to the implementation classes in all the universal service template classes, obtains required service classes, processes tasks to be processed and service data obtained from a corresponding direct protection system platform by adopting the service classes, and generates and sends service messages; and the consumer adopts the thread pool to distribute corresponding threads for each received service message and adopts a multithreading mode to carry out service processing on the service message. By the system, expandability can be improved, maintainability can be improved, and the technical problems of high maintenance cost and poor expandability in the prior art are solved.

Description

Data processing system and method for generating reinsurance risk unit data
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a data processing system and a method for generating reinsurance risk unit data.
Background
The danger unit is the maximum loss range of the insurance target which is possibly caused by a disaster accident. In order to transfer risks, the insurance company distributes part of insurance business born by the insurance company to other insurers, so that insurance unit data for reinsurance is required to be generated by underwriting, wholesale and settlement of the insurance company direct insurance end, so that the subsequent processing of the distributed business is guaranteed.
At present, a direct insurance end of an insurance company may have a plurality of system platforms, such as different system platforms of a health insurance system, a car insurance system, a group insurance system and the like, and the system platforms all have the need of reinsurance and separation business, so that dangerous unit data are generated.
In order to realize that each system platform at the direct security end generates the dangerous unit data, in the related art, a separate module for generating the dangerous unit is arranged for each system platform. In addition, most of the newly added reinsurance dangerous unit modules of each system platform are realized by copying codes of another system platform, the code repetition rate is high, a plurality of directly-protected system platforms need to be modified when the newly added functions are modified, the maintenance cost is high, and the expansibility is poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a data processing system, which writes general service template classes in a producer, writes implementation classes in a configuration file in advance, and obtains required service classes by reading the implementation classes and class instances, so that it is very convenient for a newly added system platform in a direct-protection end to expand the re-protection service, and the expandability is improved; the consumer uniformly processes and generates the reinsurance danger unit data of different system platforms, the modification of the consumer does not depend on each system platform, the maintenance cost is reduced, the maintainability is improved, and the technical problems of high maintenance cost and poor expansibility in the prior art are solved.
A second object of the present invention is to provide a method for generating reinsurance risk unit data.
A third object of the present invention is to propose another reinsurance risk unit data generation method.
A fourth object of the invention is to propose a computer device.
A fifth object of the invention is to propose a non-transitory computer-readable storage medium.
A sixth object of the invention is to propose another computer device.
A seventh object of the invention is to propose another non-transitory computer-readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides a data processing system, including: a plurality of producers corresponding to the respective direct protection system platforms, and consumers communicating with the plurality of producers through message middleware;
the producer is arranged on a server corresponding to the direct protection end system platform, writes all the general service template classes in advance, writes implementation classes in advance in a configuration file, and is used for reading the implementation classes and acquiring class instances by adopting a reflection technology during operation, and acquiring methods related to the implementation classes in all the general service template classes to obtain the required service classes, so that the service classes are adopted to process tasks to be handled and service data acquired from the corresponding direct protection end system platform, and generate and send service messages;
the consumer is arranged on a server of the re-protection system platform, the corresponding thread is distributed to each received service message by adopting the thread pool, and the service processing is carried out on the service message by adopting a multithreading mode.
The data processing system of the embodiment of the invention sets corresponding producers for each system platform of the direct protection end and consumers communicating with the producers through the message middleware, writes all the general service template classes in advance in the producers, writes the implementation classes in advance in the configuration file, reads the implementation classes and obtains class instances by adopting a reflection technology when the data processing system runs, obtains the required service classes by adopting a method related to the implementation classes in all the general service template classes, processes tasks to be handled and service data obtained from the corresponding system platforms by adopting the service classes, generates and sends service messages, and then carries out service processing on all the received service messages by adopting a multithreading mode by the consumers of the direct protection end. By writing all universal service template classes in a producer and writing implementation classes in a configuration file in advance, the required service classes can be obtained by reading the implementation classes and class instances, the convenience of expanding and reinsurance services of a newly added system platform in a direct-insurance terminal can be improved, and the expandability is improved; the consumer uniformly processes and generates the reinsurance danger unit data of different system platforms, the modification of the consumer does not depend on each system platform, the maintenance cost is reduced, the maintainability is improved, and the technical problems of high maintenance cost and poor expansibility in the prior art are solved.
To achieve the above object, a second aspect of the present invention provides a method for generating reinsurance risk unit data, which is applied to a producer in a data processing system according to the first aspect, and includes:
a producer reads a fixed number of tasks to be dealt with from a corresponding direct protection system platform by adopting a timing task;
the producer inquires the service data corresponding to the direct protection system platform according to the service type and the service number recorded in the task to be handled to obtain the service data to be processed;
the producer generates a service message according to the service data to be processed;
and the producer sends the business message to a consumer so that the consumer processes the business data to be processed in the business message to generate the reinsurance danger unit data.
According to the method for generating the reinsurance danger unit data, a producer reads a fixed number of tasks to be handled from a corresponding direct protection system platform by adopting a timing task, inquires service data of the corresponding direct protection system platform according to the service type and the service number recorded in the tasks to be handled to obtain the service data to be processed, generates a service message according to the service data to be processed, and sends the service message to a consumer, so that the consumer processes the service data to be processed in the service message to generate the reinsurance danger unit data. On one hand, when a system platform is newly added, only corresponding producers need to be added and corresponding tasks to be processed are written, so that the expandability is improved; on the other hand, the unified consumer is used for generating the reinsurance danger unit data, the modification of the consumer does not depend on each system platform, and the maintainability is improved.
In order to achieve the above object, a third embodiment of the present invention provides another method for generating reinsurance risk unit data, which is applied to a consumer in the data processing system according to the first embodiment, and includes:
a consumer receives a service message sent by a producer, wherein the service message comprises service data to be processed;
the consumer inquires a processing log to determine whether the to-be-processed business data exists in the processing log;
if the service data to be processed does not exist in the processing log, the consumer performs service processing on the service data to be processed to obtain reinsurance risk unit data, and the reinsurance risk unit data are stored in a database;
and the consumer adds the service data to be processed into the processing log.
According to the method for generating the reinsurance danger unit data, a consumer receives a service request which is sent by a producer and contains to-be-processed service data, inquires a processing log to determine whether the to-be-processed service data exists in the processing log, and when the to-be-processed service data does not exist in the processing log, the to-be-processed service data is subjected to service processing to obtain the reinsurance danger unit data and stored in a database, and the to-be-processed service data is added into the processing log. Whether the service data to be processed exists in the processing log is checked before the service data is processed, and the service data to be processed is processed only when the service data does not exist, so that the repeated processing of the service data to be processed can be avoided, the processing resources are saved, and the processing efficiency is improved.
To achieve the above object, a fourth aspect of the present invention provides a computer device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method of reinsurance the hazardous unit data generation as described in the second aspect of embodiments.
To achieve the above object, a fifth embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for generating the reinsurance risk unit data according to the second embodiment.
To achieve the above object, a sixth aspect of the present invention provides another computer device, a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the method for generating the reinsurance risk unit data according to the third aspect of the present invention.
To achieve the above object, a seventh embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the reinsurance risk unit data generation method according to the third embodiment.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for generating reinsurance risk unit data according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for generating reinsurance risk unit data according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for generating reinsurance risk unit data according to a third embodiment of the present invention;
FIG. 5 is a block diagram of a data processing system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention; and
fig. 7 is a schematic structural diagram of another computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A data processing system and a reinsurance risk unit data generation method of an embodiment of the present invention are described below with reference to the drawings.
Fig. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present invention.
As shown in fig. 1, the data processing system 10 includes: a plurality of producers 110 corresponding to respective DC-client system platforms, and a consumer 130 in communication with the plurality of producers 110 through messaging middleware 120. Wherein the content of the first and second substances,
the producer 110 is arranged on the server corresponding to the direct protection end system platform, and writes in advance each universal service template class, and writes in advance the implementation class in the configuration file, and is used for reading the implementation class and acquiring the class instance by adopting the reflection technology during the operation, and acquiring the method related to the implementation class in each universal service template class, so as to acquire the required service class, and process the task to be handled and the service data acquired from the corresponding direct protection end system platform by adopting the service class, and generate and send the service message.
The consumer 130 is disposed on the server of the re-protection system platform, and allocates a corresponding thread to each received service message by using a thread pool, and performs service processing on the service message by using a multi-thread manner.
Specifically, the producer 110 dynamically creates a task service class and a business service class according to the implementation class and the general service template classes read from the configuration file by using a reflection technology, where the task service class is used for processing the task to be handled, and the business service class is used for processing the business data.
In this embodiment, a corresponding producer 110 is set for each system platform in the secured peer, and each system platform is only used as a data source of the re-secured service, and writes a task to be handled, without participating in the processing process of the related re-secured service.
Each system platform of the direct protection end has the functions of storing and managing tasks to be handled, filing the tasks to be handled, and underwriting, modifying and claiming service data. When each system platform of the direct insurance end carries out the operations of underwriting, correcting and claims settlement, writing the tasks to be dealt with into the task list to be dealt with, for example, if the group risk system database corresponds to the mysql database, writing the task list to be dealt with into the corresponding mysql database; and writing the task list to be handled into the corresponding oracle database if the car insurance system database corresponds to the oracle database. The task to be handled may include: service type (underwriting, amending, claim settlement), service number (corresponding to policy number, lot number, claim number), source platform (identification of each platform), number of deliveries, status of tasks (unprocessed, processing, processed, failed), version number (optimistic lock usage), creator, creation time, modifier, modification time. And filing the successfully processed task data to be handled into a task filing table to be handled, wherein the structure of the data in the task filing table to be handled is the same as the composition structure of the task to be handled. And the underwriting, modifying and claim settlement service data of the direct insurance terminal is stored in each system platform.
The producers 110 are deployed as a process on servers of various system platforms, one system platform for each producer 110. The producer 110 functions include reading the to-do task list, optimistically updating the to-do task list processing status, querying underwriting modification claim data, sending messages, updating and archiving the to-do task list, time-out compensation tasks, and so forth. The producer 110 is realized by template mode, configuration and reflection technology for the differentiated function of each system platform, and the producer function of a new system platform can be supported only by expanding the implementation class for realizing the corresponding interface without modifying the universal code of the producer 110.
For example, a profile service is set, and complete class names of two implementation classes are defined as:
reinsTaskService=com.taikang.reinsurance.service.ReinsTaskServiceImpl
reinsDataService=com.taikang.reinsurance.service.ReinsDataServiceImpl
using reflection techniques to obtain an example of a class, the value of value is obtained from a configuration file, such as value com. Object bean is class.
These two service classes inherit a common service template class. Therefore, only the differentiated method implementation class needs to be reloaded, the class instance is dynamically acquired through the configuration file, and the corresponding method is called, so that a producer with a differentiated new direct protection system platform can be realized.
The producer 110 reads the task to be handled from the corresponding system platform and inquires the underwriting, modifying and claim data according to the task to be handled. The general service template classes are written in the producer 110 in advance, the implementation class is written in the configuration file in advance, when the producer 110 needs to process tasks to be done and business data of different system platforms, the implementation class can be read from the configuration file, the implementation class and the general service template classes read from the configuration file by combining a reflection technology are combined, the tasks to be done service class and the business service class are dynamically created, and the corresponding producers can be easily deployed on each system platform, for example, a producer corresponding to a group insurance is deployed on the group insurance system platform, and a producer corresponding to a car insurance is deployed on the car insurance system platform. And further, the created task service class and the created service class to be handled are adopted to process the task to be handled and the service data acquired from the system platform, and the service message is generated and sent.
The business messages sent by the producer 110 arrive at the consumer 130 on the server of the reinsurance system platform via the message middleware 120, and the business messages are processed by the consumer 130 to generate reinsurance risk unit data. The consumer 130 allocates corresponding threads to each received service message by using the thread pool, each thread processes one service message, and generates corresponding reinsurance risk unit data, and the consumer 130 can uniformly store the generated reinsurance risk unit data in a database cluster of the reinsurance terminal.
In the data processing system of this embodiment, by setting a corresponding producer for each system platform of the direct protection end and a consumer communicating with multiple producers through a message middleware, each service template class is written in advance in the producer, an implementation class is written in advance in a configuration file, when the data processing system runs, the implementation class is read, a class instance is obtained by using a reflection technology, a method related to the implementation class in each service template class is obtained to obtain a required service class, the service class is used to process tasks to be handled and service data obtained from the corresponding system platform, service messages are generated and sent, and the consumer at the re-protection end performs service processing on each received service message in a multithreading manner. By writing all universal service template classes in a producer and writing implementation classes in a configuration file in advance, the required service classes can be obtained by reading the implementation classes and class instances, the convenience of expanding and reinsurance services of a newly added system platform in a direct-insurance terminal can be improved, and the expandability is improved; the consumer uniformly processes and generates the reinsurance danger unit data of different system platforms, the modification of the consumer does not depend on each system platform, the maintenance cost is reduced, the maintainability is improved, and the technical problems of high maintenance cost and poor expansibility in the prior art are solved.
In order to implement the above embodiment, the present invention further provides a method for generating reinsurance risk unit data.
FIG. 2 is a flowchart illustrating a method for generating reinsurance risk unit data according to an embodiment of the present invention, which is applied to the producer 110 in the data processing system 10 according to the above embodiment.
As shown in fig. 2, the reinsurance risk unit data generating method includes the steps of:
in step 201, a producer reads a fixed number of tasks to be handled from a corresponding direct protection system platform by using a timing task.
The time interval for the producer to read the tasks to be handled from the direct-saving system platform can be preset, and the specific values of the time interval and the number are not limited.
In this embodiment, the producer may start a timing task thread, and read a fixed number (for example, 1000) of tasks to be handled from the task table at a time according to a preset time interval (for example, 30 seconds) and a sequence of creation times of the tasks to be handled in the task table to be handled. The number of the tasks to be handled read at a time can be set in a configuration file, and a producer obtains a value of the number from the configuration file during operation.
Step 202, the producer queries the service data of the corresponding direct protection system platform according to the service type and the service number recorded in the task to be handled, and obtains the service data to be processed.
After reading the tasks to be handled, the producer analyzes the tasks to be handled, obtains the service types and the service numbers recorded in the tasks to be handled, and queries the service data of the corresponding direct protection system platform according to the service types and the service numbers. For example, if the service type is an insurance application type, inquiring insurance application service data required by the insurance policy risk unit; if the service type is a correction type, correcting service data required by generating a bill danger unit is inquired; and if the service type is the claim type, inquiring the claim service data required for generating pending risk units of the claim and pending risk units of the claim.
Step 203, the producer generates a service message according to the service data to be processed.
In this embodiment, after the producer obtains the service data, the producer may generate a service message according to the service data to be processed. For example, the producer may assemble the acquired service Data to be processed into a Data Transfer Object (DTO), and convert the service Data into a service message.
And step 204, the producer sends the service message to the consumer so that the consumer processes the service data to be processed in the service message to generate the reinsurance risk unit data.
And the producer sends the generated business message to the consumer so that the consumer processes the to-be-processed business data in the business message to generate the reinsurance risk unit data.
In the method for generating reinsurance danger unit data of this embodiment, a producer reads a fixed number of tasks to be handled from a corresponding direct protection system platform by using a timing task, queries service data corresponding to the direct protection system platform according to a service type and a service number recorded in the tasks to be handled, obtains the service data to be processed, generates a service message according to the service data to be processed, and sends the service message to a consumer, so that the consumer processes the service data to be processed in the service message, and generates reinsurance danger unit data. On one hand, when a system platform is newly added, only corresponding producers need to be added and corresponding tasks to be processed are written, so that the expandability is improved; on the other hand, the unified consumer is used for generating the reinsurance danger unit data, the modification of the consumer does not depend on each system platform, and the maintainability is improved.
Fig. 3 is a flowchart illustrating a method for generating reinsurance risk unit data according to a second embodiment of the present invention.
As shown in fig. 3, the reinsurance risk unit data generating method may include the steps of:
step 301, a producer reads a fixed number of tasks to be dealt with from a corresponding direct protection system platform by using a timing task.
It should be noted that, in the present embodiment, reference may be made to the description of step 201 in the foregoing embodiment for the description of step 301, and details are not described here again.
Step 302, the producer modifies the task list to be handled in the corresponding direct-protection system platform, and the version number of the task to be handled currently processed in the modified task list to be handled is different from that before modification so as to mark the task to be handled currently processed.
In this embodiment, after the producer reads the to-be-handled task from the corresponding direct protection system platform, the to-be-handled task table may be modified, so that the modified to-be-handled task table is different from the to-be-handled task table before modification.
Specifically, the producer may update the states of the read several tasks to be handled to be in-progress by using an optimistic lock mechanism with the version number added by 1, and if the update fails, quit the processing of the current task to be handled, and continue to process the next task to be handled.
And step 303, inquiring the service data of the corresponding direct protection system platform by the producer according to the service type and the service number recorded in the task to be handled to obtain the service data to be processed.
And step 304, the producer generates a service message according to the service data to be processed.
It should be noted that, in the present embodiment, the description of step 303 to step 304 may refer to the description of step 202 to step 203 in the foregoing embodiment, and details are not described here again.
And 305, the producer sends the business message to the consumer so that the consumer processes the business data to be processed in the business message to generate the reinsurance risk unit data.
In this embodiment, after obtaining the service message, the producer may send the service message to the consumer.
Optionally, in a possible implementation manner of the embodiment of the present invention, after the producer sends the service message to the consumer, the to-do task table in the corresponding direct protection end system platform may be modified according to the to-do task completed by the consumer, so that the to-do task completed in the modified to-do task table is marked as a completed state. And meanwhile, the producer files the tasks to be handled marked as the finished state into the task to be handled filing table of the corresponding direct-protection system platform. In this embodiment, the producer may provide a filing task to be handled interface for the consumer to call, so that when the consumer completes the task to be handled, the status of the task to be handled in the task to be handled table is updated to the completed status, and the task to be handled is filed in the task to be handled filing table.
Optionally, in a possible implementation manner of the embodiment of the present invention, after the producer sends the service message to the consumer, a sending result of the service message may be monitored, and if the sending of the service message fails, the producer sends the service message to the consumer again. If the number of times of resending the service message reaches a threshold number (for example, 6 times), or the service message is successfully sent, but the processing time of the consumer after the successful sending is longer than a threshold time (for example, 30 minutes), it is determined that an exception exists, where the exception exists may be that the service message is lost or the processing procedure is abnormal. And when the exception is determined to exist, resetting the state of the task to be handled to be an unprocessed state by the producer so that the task to be handled can be read again by the timed task thread.
In the method for generating reinsurance risk unit data of the embodiment, after the producer reads the fixed number of tasks to be handled from the corresponding direct protection system platform by using the timing task, the task table to be handled in the corresponding direct protection system platform is modified, so that the version number of the task to be handled currently processed in the modified task table is different from that before modification, the task to be handled currently processed is marked, the task to be handled currently processed in the task table to be handled can be effectively identified, and the task to be handled is prevented from being repeatedly read. By acquiring the service data to be processed, generating the service message according to the service data to be processed and sending the service message to the consumer, the consumer can process the service data to be processed in the service message to generate the reinsurance unit data, and the expandability and maintainability of the system can be improved.
In order to implement the above embodiment, the present invention further provides another method for generating reinsurance risk unit data.
Fig. 4 is a flowchart illustrating a method for generating reinsurance risk unit data according to a third embodiment of the present invention, which is applied to the consumer 130 of the data processing system 10 according to the previous embodiment.
As shown in fig. 4, the reinsurance risk unit data generating method includes the steps of:
step 401, a consumer receives a service message sent by a producer, wherein the service message includes service data to be processed.
In this embodiment, after the producer generates the service message, the service message is sent to the consumer. The consumer receives the business message sent by the producer. The consumer can analyze the received service message and extract the service data to be processed.
Step 402, the consumer queries the processing log to determine whether the processing log contains the service data to be processed.
Before the customer processes the to-be-processed service data contained in the service message, the customer may first query the processing log to determine whether the to-be-processed service data exists in the processing log. When the service data to be processed already exists in the processing log, the service data to be processed is considered to be processed, and the processing of the service data to be processed is abandoned.
In this embodiment, the consumer may determine whether the corresponding service data exists in the processing log according to the service type and the service number of the service data to be processed, and abandon the processing when the corresponding service data exists, and process the service data to be processed when the corresponding service data does not exist.
Step 403, if the to-be-processed service data does not exist in the processing log, the consumer performs service processing on the to-be-processed service data to obtain the reinsurance risk unit data, and stores the reinsurance risk unit data in the database.
And when the consumer determines that the service data to be processed does not exist in the processing log by inquiring the processing log, the consumer performs service processing on the service data to be processed to obtain the reinsurance danger unit data matched with the service type of the service data to be processed, and stores the reinsurance danger unit data in a database of the reinsurance terminal.
Optionally, in a possible implementation manner of the embodiment of the present invention, after the consumer processes the service data to be processed to obtain the reinsurance risk unit data, the consumer may further invoke an interface of a producer sending the service message according to an interface address carried in the service message, so that the producer modifies the to-be-handled task table in the corresponding straight-protection end system platform, in the modified to-be-handled task table, the to-be-handled task that has been processed is marked as a completed state, and the to-be-handled task that is marked as the completed state is archived to the to-be-handled task archive table in the corresponding straight-protection end system platform. When the producer finishes archiving the tasks to be handled marked as the finished state, the consumer archives the tasks to be handled to the consumption log.
Optionally, in a possible implementation manner of the embodiment of the present invention, if the consumer fails to perform service processing on the service data to be processed, the consumer may further record error information in an error log, so as to facilitate checking during later maintenance.
Step 404, the customer adds the business data to be processed to the processing log.
For the to-be-processed business data successfully processed, the consumer can add the to-be-processed business data to the processing log.
As an example, a corresponding expiration time (e.g. 2 hours) may be set for the to-be-processed service data added to the processing log, and the expiration time may be written into the configuration file in advance and read from the configuration file when needed. When the time length of the to-be-processed service data added into the processing log stored in the processing log reaches the failure time, the to-be-processed service data is cleared, or the to-be-processed service data reaching the failure time is still kept in the processing log, but a consumer does not inquire the to-be-processed service data which is stored in the processing log and reaches the failure time before the consumer processes new to-be-processed service data subsequently.
In the method for generating the reinsurance danger unit data of the embodiment, a consumer receives a service request containing to-be-processed service data sent by a producer, inquires a processing log to determine whether the to-be-processed service data exists in the processing log, and when the to-be-processed service data does not exist in the processing log, performs service processing on the to-be-processed service data to obtain the reinsurance danger unit data, stores the reinsurance danger unit data in a database, and adds the to-be-processed service data to the processing log. Whether the service data to be processed exists in the processing log is checked before the service data is processed, and the service data to be processed is processed only when the service data does not exist, so that the repeated processing of the service data to be processed can be avoided, the processing resources are saved, and the processing efficiency is improved.
Fig. 5 is a schematic diagram of a data processing system according to an embodiment of the present invention, which implements the above-mentioned method for generating reinsurance-risk unit data to achieve the purpose of fast expansion of producers corresponding to the direct insurance system platform and unified generation of reinsurance-risk unit data by consumers. The data processing system shown in fig. 5 is only exemplified as including one in-line protection system platform and corresponding one producer and one consumer, but it should be understood based on the description of the foregoing embodiments that the data processing system may include a plurality of in-line protection system platforms, each in-line protection system platform corresponding to one producer and a plurality of producers corresponding to the same consumer.
As shown in fig. 5, the direct protection system platform includes a to-be-handled task table, claim data for approval, and a to-be-handled task filing table, where the to-be-handled task table records the to-be-handled tasks, and the to-be-handled tasks that have been processed are recorded in the to-be-handled task filing table. When the producer runs, the task table to be handled is read from the corresponding direct protection system platform, the task to be handled is read from the direct protection system platform, the processing state of the task table to be handled is updated by adopting an optimistic lock mechanism, the claim data is inquired according to the task to be handled, the service message is generated, and the service message is sent to the consumer through the Kafka message middleware. And the consumer receives the service message and performs idempotent verification on the service message to determine whether the service data to be processed exists in the processing log, performs service processing on the service data to be processed when the service data does not exist to generate insurance claim danger unit data, records the danger unit data in the consumption log, and records the corresponding service data to be processed in the processing log. And the consumer also adopts the timed task to file the consumption log and the task table to be handled, so that the producer updates the task file table to be handled of the direct-protection system platform.
It should be noted that, in the above example, for the specific working process of the producer and the consumer in the data processing system, reference may be made to the description of the method for generating the reinsurance risk unit data in the foregoing embodiment, and details are not described here again.
The data processing system of the embodiment has better expandability and maintainability, on one hand, when a system platform is newly added, only corresponding producers need to be added and corresponding tasks to be dealt with need to be written in, and the expandability is improved; on the other hand, the unified consumer is used for generating the reinsurance danger unit data, the modification of the consumer does not depend on each system platform, and the maintainability is improved.
In order to implement the above embodiments, the present invention further provides a computer device.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 6, the computer device 60 includes: a memory 601, a processor 602 and a computer program 603 stored on the memory 601 and executable on the processor 602, which when executed by the processor 602, implement the reinsurance risk unit data generation method as described in the previous embodiments, which is applied to a producer in a data processing system.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a reinsurance risk unit data generation method as described in the foregoing embodiments, the method being applied to a producer in a data processing system.
In order to implement the above embodiments, the present invention also provides another computer device.
Fig. 7 is a schematic structural diagram of another computer device according to an embodiment of the present invention. As shown in fig. 7, the computer device 70 includes: a memory 701, a processor 702 and a computer program 703 stored in the memory 701 and executable on the processor 702, which when executed by the processor 702, implement the method of reinsurance the hazardous unit data generation as described in the previous embodiments, which is applied to a consumer in a data processing system.
In order to implement the above embodiments, the present invention also proposes another non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a reinsurance risk unit data generation method as described in the foregoing embodiments, which is applied to a consumer in a data processing system.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A data processing system, comprising a plurality of producers corresponding to respective point-of-care system platforms, and a consumer communicating with the plurality of producers through messaging middleware;
the producer is arranged on a server corresponding to the direct protection end system platform, writes all the general service template classes in advance, writes implementation classes in advance in a configuration file, and is used for reading the implementation classes and acquiring class instances by adopting a reflection technology during operation, and acquiring methods related to the implementation classes in all the general service template classes to obtain the required service classes, so that the service classes are adopted to process tasks to be handled and service data acquired from the corresponding direct protection end system platform, and generate and send service messages;
the consumer is arranged on a server of the re-protection system platform, the corresponding thread is distributed to each received service message by adopting the thread pool, and the service processing is carried out on the service message by adopting a multithreading mode.
2. The data processing system of claim 1,
the producer is specifically used for dynamically creating a task service class to be handled and a service class according to the implementation class and the general service template classes read from the configuration file by adopting a reflection technology;
the task service class to be handled is used for processing the task to be handled;
and the service class is used for processing the service data.
3. A method of reinsurance for generating hazardous unit data for use by a producer in a data processing system according to claim 1 or claim 2, the method comprising the steps of:
a producer reads a fixed number of tasks to be dealt with from a corresponding direct protection system platform by adopting a timing task;
the producer inquires the service data corresponding to the direct protection system platform according to the service type and the service number recorded in the task to be handled to obtain the service data to be processed;
the producer generates a service message according to the service data to be processed;
and the producer sends the business message to a consumer so that the consumer processes the business data to be processed in the business message to generate the reinsurance danger unit data.
4. The method of claim 3, wherein after the producer reads a fixed number of tasks to be done from the corresponding SoC platform using the timing task, the method further comprises:
and the producer modifies the task list to be handled in the corresponding direct-protection system platform, and the version number of the task to be handled which is being processed in the modified task list to be handled is different from that before modification so as to mark the task to be handled which is being processed.
5. The method of claim 3, wherein after the producer sends the business message to the consumer, further comprising:
aiming at the tasks to be handled which are processed by the consumer, the producer modifies a task table to be handled in the corresponding direct protection system platform, and the tasks to be handled which are processed are marked as a completed state in the modified task table to be handled;
and the producer files the tasks to be handled marked as the finished state to a task filing table to be handled in the corresponding direct-protection system platform.
6. The method of claim 3, wherein after the producer sends the business message to the consumer, further comprising:
if the sending fails, the producer sends the service message to the consumer again;
and if the retransmission times reach the threshold times, or the processing time length of the consumer is greater than the threshold time length after the successful transmission, determining that the abnormity exists.
7. A method of reinsurance of hazardous unit data generation for use by a consumer in a data processing system as claimed in claim 1 or claim 2, the method comprising the steps of:
a consumer receives a service message sent by a producer, wherein the service message comprises service data to be processed;
the consumer inquires a processing log to determine whether the to-be-processed business data exists in the processing log;
if the service data to be processed does not exist in the processing log, the consumer performs service processing on the service data to be processed to obtain reinsurance risk unit data, and the reinsurance risk unit data are stored in a database;
and the consumer adds the service data to be processed into the processing log.
8. The method of claim 7, wherein after obtaining the reinsurance risk unit data, further comprising:
the consumer calls an interface of a producer sending the service message according to an interface address carried in the service message so that the producer modifies a task list to be handled in a corresponding direct protection system platform, the task list to be handled which is processed in the modified task list to be handled is marked as a finished state, and the task to be handled marked as the finished state is filed in a task filing list to be handled in the corresponding direct protection system platform;
when the producer finishes archiving the tasks to be handled marked as the finished state, the consumer archives the tasks to be handled to a consumption log.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing a reinsurance danger unit data generating method according to any one of claims 3 to 6.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements a method of reinsurance hazardous unit data generation as claimed in any one of claims 3-6.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing a method of reinsurance hazardous unit data generation as claimed in claim 7 or 8.
12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements a reinsurance hazardous unit data generation method 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 CN107945031A (en) 2018-04-20
CN107945031B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597678B (en) * 2018-10-09 2023-07-21 创新先进技术有限公司 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
CN111818112B (en) * 2019-04-11 2022-10-04 中国移动通信集团四川有限公司 Kafka system-based message sending method and device
CN110765167B (en) * 2019-10-23 2022-07-22 泰康保险集团股份有限公司 Policy data processing method, policy data processing device and policy data processing equipment
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
CN112182106B (en) * 2020-09-28 2023-11-28 中国平安人寿保险股份有限公司 Insurance business data processing method, system, device and storage medium
CN112333087B (en) * 2020-11-18 2023-03-28 平安消费金融有限公司 Consumption message processing method and related equipment

Citations (4)

* 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
CN107329991A (en) * 2017-06-07 2017-11-07 武汉斗鱼网络科技有限公司 A kind of list access to web page and methods of exhibiting and its system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170053354A1 (en) * 2015-08-21 2017-02-23 Revolution Group, Inc. Licensing manager

Patent Citations (4)

* 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
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规则引擎的保险核算系统设计;刘新宇;《中国优秀硕士学位论文全文数据库信息科技辑》;20120815;I138-241 *

Also Published As

Publication number Publication date
CN107945031A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107945031B (en) Data processing system and method for generating reinsurance risk unit data
EP3552343B1 (en) Method and apparatus for creating a finite blockchain
CN110555078A (en) Distributed ID generation
CN110264348B (en) Processing method, device and storage medium for transaction uplink
US20140032833A1 (en) Dynamic Disk Space Management In A File System
CN106776795B (en) Data writing method and device based on Hbase database
US20240037093A1 (en) Control method, server, and data structure
JP2008519361A (en) How to enforce application specific management policies on content addressed storage devices
CN104408068A (en) Report form data processing method and related equipment
US20200234375A1 (en) Protecting against data loss
CN109189342A (en) A kind of disk hanging method, device, equipment and storage medium
CN112433885A (en) Block chain consensus processing method and device, electronic equipment and storage medium
US8838545B2 (en) Incremental and prioritized restoration of blocks
CN108198078B (en) Processing method and system of reinsurance business
US20150309556A1 (en) Power system monitoring and control system
CN106843928B (en) Remote restoration method and device for application program
CN106598690B (en) Management method and device for codes
CN111158747B (en) APP prompt message dynamic configuration method, system, computer equipment and storage medium
CN110807000B (en) File repair method and device, electronic equipment and storage medium
CN111694724B (en) Test method and device of distributed form system, electronic equipment and storage medium
CN107844491B (en) Method and equipment for realizing strong consistency read operation in distributed system
CN111324668B (en) Database data synchronous processing method, device and storage medium
CN112596959A (en) Distributed storage cluster data backup method and device
CN109144967B (en) Maintenance system and method for improving distributed computing system
US9380109B2 (en) Resource synchronization control method, device, and system

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

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.

CP03 Change of name, title or address