CN107918865B - Policy data modification processing method, device, server and storage medium - Google Patents

Policy data modification processing method, device, server and storage medium Download PDF

Info

Publication number
CN107918865B
CN107918865B CN201711298513.5A CN201711298513A CN107918865B CN 107918865 B CN107918865 B CN 107918865B CN 201711298513 A CN201711298513 A CN 201711298513A CN 107918865 B CN107918865 B CN 107918865B
Authority
CN
China
Prior art keywords
correction
data
policy
character string
character strings
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
CN201711298513.5A
Other languages
Chinese (zh)
Other versions
CN107918865A (en
Inventor
聂志高
陈真
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201711298513.5A priority Critical patent/CN107918865B/en
Publication of CN107918865A publication Critical patent/CN107918865A/en
Application granted granted Critical
Publication of CN107918865B publication Critical patent/CN107918865B/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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to a policy data modification processing method, a policy data modification processing device, a policy data modification server and a storage medium. The warranty data correction processing method comprises the following steps: receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification; acquiring corresponding original policy data according to the policy identification; the original policy data includes a validity period field; screening target policy data to obtain correction data; verifying the validity of the validity period field and the correction data; when the verification is passed, the correction data is sent to an auditing terminal corresponding to the auditing identifier; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal. The method can improve the warranty data correction efficiency.

Description

Policy data modification processing method, device, server and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, a server and a storage medium for warranty data correction processing.
Background
With the continuous improvement of the insurance system, after the insurance policy is released, in the insurance period, if the insurance applicant finds that the declaration of the insurance policy is wrong or omitted, or the content carried by the insurance policy does not accord with the actual situation due to the occurrence of new or unexpected situations, the insurance policy data can be applied to modify, so that the content of the original insurance policy is supplemented or changed, and the insurance target can obtain the insurance suitable for the actual situation. In the traditional mode, an applicant submits original insurance policy to an insurance company, the insurance company needs to manually check massive original insurance policies one by one according to the correction requirements of the applicant, and corrects partial contents in insurance policy data, for example, corrects insured information, applicant information, insurance money and the like, so that a large workload is brought to the insurance company, and the manual one-by-one checking and correcting mode makes the insurance policy correction low in efficiency.
Disclosure of Invention
In view of the above, it is desirable to provide a policy data modification method, device, server, and storage medium that can reduce the workload of insurance companies and improve the policy modification efficiency.
A warranty data correction processing method comprises the following steps:
receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification;
acquiring corresponding original policy data according to the policy identification; the original policy data includes a validity period field;
screening target policy data to obtain correction data;
verifying the validity of the validity period field and the correction data;
when the verification is passed, the batch correction data is sent to an auditing terminal corresponding to the auditing identification;
and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
In one embodiment, the target policy data comprises a JSON string; the step of screening the target policy data to obtain the correction data comprises the following steps:
acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression;
acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks;
determining the traversal direction of the multi-segment node character strings;
and traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened character strings as correction data.
In one embodiment, the validity period field includes an insurance period; the correction data comprises the item and a corresponding correction value; the step of checking the validity of the validity period field and the wholesale data comprises the following steps:
acquiring correction request time, and verifying the validity period field by comparing whether the correction request time is in the insurance period;
checking whether the correction items in the correction data belong to preset allowable correction items or not;
when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template;
when the verification fails, returning an input time format illegal prompt to the service terminal;
when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
In one embodiment, the generating, according to a preset rule, target character strings corresponding to a plurality of source character strings, and comparing the plurality of source character strings with the corresponding target character strings to check the validity of the first time character string includes:
respectively associating a plurality of source character strings serving as variable values with a preset source variable name;
converting the first time string to a date object and converting the date object to a second time string;
dividing the second time string into a plurality of target strings;
respectively associating a plurality of target character strings serving as variable values with a preset target variable name;
and matching the plurality of source character strings with the corresponding target character strings according to the corresponding relation between the source variable names and the target variable names, wherein when the source character strings and the corresponding target character strings are successfully matched respectively, the validity check of the first time character strings is passed.
In one embodiment, the step of changing the corresponding field in the original policy data according to the wholesale data to generate the corresponding wholesale list includes:
generating a correction task by using the correction data and the original policy data, and recording a task identifier and task data corresponding to the correction task to a first task table of a database;
marking the correction state of the correction task as to-be-corrected in the first task table;
screening the first task table, screening out the task identification of which the correction state is to be corrected, and recording the screened task identification to a second task table;
and extracting a preset number of task identifiers from the second task table, capturing task data of corresponding correction tasks from the first task table according to the extracted task identifiers, executing the corresponding correction tasks in batches by using the captured task data, and generating a batch list corresponding to each of the plurality of correction tasks.
In one embodiment, the step of changing the corresponding field in the original policy data according to the wholesale data includes:
when the batch modification item comprises a guarantee time, inquiring a corresponding formula character string according to the policy identification; the formula string includes a plurality of premium variation factors;
extracting premium change parameters from the correction data, and replacing corresponding premium change factors in the formula character string by using the extracted premium change parameters;
splitting the replaced formula character string into a plurality of operation formulas according to a preset rule, and determining the calculation sequence of the plurality of operation formulas according to the preset operation rule;
and calculating the result value of each operation expression according to the calculation sequence, obtaining a premium change value according to the result value, and changing the premium of the original policy data by using the premium change value.
A policy data wholesale processing apparatus comprising:
the screening module is used for receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification; screening target policy data to obtain correction data;
the verification module is used for acquiring corresponding original policy data according to the policy identifier; the original policy data includes a validity period field; verifying the validity of the validity period field and the correction data;
the correction module is used for sending the correction data to an auditing terminal corresponding to the auditing identifier when the verification is passed; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
In one embodiment, the validity period field includes an insurance period; the correction data comprises the item and a corresponding correction value; the checking module is further used for acquiring the correction request time and checking the validity period field by comparing whether the correction request time is in the insurance period or not; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the verification fails, returning an input time format illegal prompt to the service terminal; when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the policy data approval processing method provided in one embodiment of the present invention when executing the program.
A computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of a policy data modification processing method provided in one embodiment of the present invention.
According to the policy data modification processing method, device, server and storage medium, the corresponding target policy data can be obtained according to the policy identification carried by the policy modification request; the correction data can be obtained by screening the target policy data; original policy data can be obtained according to the policy identification in the target policy data, and the validation data can be sent to the auditing terminal according to the verification result by carrying out validity verification on the validity period field and the modification data in the original policy data; and according to the confirmation information returned by the auditing terminal, changing the corresponding field of the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal. In the whole modification process, the server automatically verifies the target policy data and automatically modifies the original policy data according to the verification result, so that the manual participation is reduced, and the policy data modification efficiency can be improved; and the server screens the correction data from the target warranty data, and only sends the correction data to the auditing terminal, so that the data transmission load of the server can be reduced, the auditing task amount of the auditing terminal can be reduced, and the warranty data correction efficiency can be improved.
Drawings
FIG. 1 is a diagram of an application environment of a policy data modification method according to an embodiment;
FIG. 2 is a flow diagram of a policy data modification processing method in one embodiment;
FIG. 3 is a schematic diagram of an embodiment of a policy data modification apparatus;
fig. 4 is a schematic structural diagram of a server in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
The application provides a policy data modification processing method which can be applied to an application environment shown in fig. 1. The service terminal 102 is connected to the server 104 through a network. The verification terminals 106 are connected to the server 104 through a network, respectively. The service terminal 102 and the audit terminal 106 may be at least one of a smart phone, a tablet computer, a desktop computer, and a vehicle-mounted computer, but are not limited thereto. The server 104 may be an independent physical server or a server cluster including a plurality of physical servers. When the policy data of a plurality of policies needs to be modified, the insurance company service personnel can send policy modification requests to the server 104 through the service terminal 102, and the server 104 screens the target policy data in the JSON format carried by the policy modification requests. The target policy data in the JSON format is a JSON character string, and the server 104 extracts the modified data, that is, modified data, in the JSON character string. The target policy data includes a policy identification. The server 104 obtains corresponding original policy data according to the policy identification, the original policy data including a validity period field. The server 104 verifies the validity of the valid period field and the correction data, and when the verification is passed, the server 104 sends the correction data to the verification terminal 106 corresponding to the verification identifier carried by the warranty correction request. When receiving the confirmation information returned by the audit terminal 106, the server 104 changes the corresponding field in the original policy data according to the wholesale data, generates a corresponding wholesale list, and returns the wholesale list to the service terminal 102. In the whole correction process, the server automatically verifies the original policy data and automatically performs correction operation according to the verification result, so that manual participation is reduced, and the correction efficiency of the policy data can be improved; and the server screens the correction data from the original warranty data, and only sends the correction data to the auditing terminal, so that the data transmission load of the server can be reduced, the auditing task amount of the auditing terminal can be reduced, and the warranty data correction efficiency can be improved.
In an embodiment, as shown in fig. 2, a policy data modification processing method is provided, which is described by taking an example that the method is applied to a server, and specifically includes the following steps:
step 202, receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification.
Step 204, acquiring corresponding original policy data according to the policy identifier; the original policy data includes a validity period field.
When the policy data of a plurality of policies needs to be modified, the insurance company business personnel can send policy modification requests to the server through the business terminal. The policy approval request carries policy identifications for a plurality of policies. The server queries corresponding original policy data according to the policy identification, and generates a policy correction page by using the queried original policy data. Each raw policy data includes a plurality of fields. And the server sends the insurance policy correction page to the service terminal. The service terminal obtains the correction operation of the service personnel on the policy correction page to one or more fields, and when the correction operation is completed, the service terminal generates a JSON (JavaScript Object Notation, JS Object marking) Object by using the fields on the policy correction page. The JSON object includes a plurality of nodes. Each node corresponds to policy data for a policy, including policy identification, and the like. In order to improve the data transmission rate, the service terminal converts the JSON object into a JSON character string to obtain policy data (hereinafter referred to as "target policy data") requested to be modified. It is easily understood that the original policy data is the policy data corresponding to the policy identifier before the service personnel requests the correction, i.e. the data that is not corrected. The target policy data is policy data that the business person requests to modify. The target policy data records all fields on the policy correction page in a character string mode, including both corrected fields and non-corrected fields, such as policy identification and the like.
The business personnel can also appoint the auditor to audit the warranty correction request by inputting the audit mark on the warranty correction page. The audit mark is a mark for uniquely identifying an auditor. And the service terminal generates a new policy correction request by using the target policy data and the audit mark and sends the policy correction request to the server.
And step 206, screening the target policy data to obtain the correction data.
The server prestores a first regular expression, which includes a start identifier and an end identifier. And the server splits the JSON character string into a plurality of sections of node character strings according to the starting identifier and the ending identifier. Each node string corresponds to target policy data for a policy. The server also prestores a second regular expression. The second regular expression includes one or more target character strings with a wholesale identification. The server acquires a section of node character string, traverses the section of node character string, and determines the traversal direction of the sections of node character string according to the time of traversing to the character string matched with the second regular expression or the position of the character string matched with the second regular expression in the section of node character string. The traversal directions include a first traversal direction and a second traversal direction. Wherein, the first traversal direction is a forward traversal, i.e. a traversal from the first character to the last character of the node character string. The second traversal direction is a negative traversal, i.e., from the last character of the node string to the first character.
And the server respectively traverses the multi-segment node character strings according to the determined traversing direction. In the traversing process, the server searches character strings matched with the target character strings in the node character strings according to the target character strings contained in the second regular expression. And the server screens the character strings matched with the second regular expression in the node character strings, namely the corrected character strings, and takes the screened character strings as correction data of the section of node character strings. The correction data includes the item and the corresponding correction value. The batch item refers to the field name corresponding to the batch value, and the batch value is the corresponding field value.
In step 208, the validity of the validity period field and the correction data is checked.
The raw policy data includes a plurality of validity fields, such as insurance period, insurance validation time, and the like. The server checks the validity of the validity field. For example, when the server receives the policy correction request, the server obtains the corresponding correction request time. The server identifies whether the batch correction request time is within the corresponding insurance period so as to verify that the corresponding insurance policy is in the insurance state. And when the correction request time is within the corresponding insurance period, the validity check of the validity period field is passed.
The server also checks the legality of the screened correction data. For example, the server checks whether the correction item in the correction data belongs to a preset permission correction item. The server presets a plurality of allowable modification items corresponding to the risk types, for example, the allowable modification items corresponding to the car insurance include an applicant, an insurance time, an insured person, an insurance period, a premium, vehicle information of an insurance target, use properties and the like. Wherein, the insurance period comprises a guarantee starting time and an insurance ending time. And fields such as the warranty number and the risk category do not allow correction. When the correction item in the correction data belongs to the permission correction item, the validity check of the correction data is passed.
And step 210, when the verification is passed, transmitting the correction data to an auditing terminal corresponding to the auditing identifier.
When validity periods of the fields and the correction data respectively pass the validity check, the server generates an audit task by using the policy identifier and the corresponding correction data, and sends the audit task to a terminal corresponding to the audit identifier, namely an audit terminal. The auditing terminal only needs to audit the content of the target warranty data which is subject to the correction, so that the data transmission quantity of the server can be reduced, the auditing efficiency of the correction data can be improved, and the correction efficiency of the warranty data can be improved.
And 212, when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
When the confirmation information of the verification terminal on the correction data is received and the confirmation information is the approval of correction, the server can correct the original policy data according to the correction data. Specifically, when the item includes a premium, the server obtains a premium calculation formula corresponding to the policy identifier, determines a parameter value of the premium calculation formula according to a modification value corresponding to the item, substitutes the parameter value into the corresponding premium calculation formula, calculates to obtain a premium change value, and changes a corresponding field of original policy data by using the premium change value. According to the mode, after the server changes all the corresponding fields in the original policy data according to the wholesale data, generating the policies corresponding to each policy identification, and returning the generated policies to the service terminal.
In one embodiment, when the server receives the confirmation information of the verification terminal on the correction data and the confirmation information indicates that the correction is approved, the server monitors the loads of other servers in the cluster to which the server belongs, determines the server with the lowest load as a target server, and sends the policy identifier and the corresponding correction data to the target server, so that the target server corrects the original policy data according to the manner. The load of the server comprises the CPU resource utilization rate, the memory occupancy rate and the like. The correction data of the plurality of insurance policies are distributed to the server with the lowest load in the cluster for processing, so that the correction processing efficiency of the insurance policy data can be improved.
In another embodiment, when the server receives the confirmation information of the audit terminal on the wholesale data, and the confirmation information is that the wholesale is approved, the server obtains the data volume of the wholesale data corresponding to each of the plurality of insurance policies, and monitors the load of other servers in the cluster to which the server belongs. The server obtains a preset correction data volume and an optimal matching file of server load, determines the total number of the insurance policies that can be processed by each server in the cluster according to the load, and groups a plurality of insurance policies according to the total number of the insurance policies that can be processed by each server. And the server generates corresponding policy correction tasks by using the correction data of each policy group, and distributes a plurality of policy correction tasks to corresponding servers in the cluster according to the optimal matching file. And a plurality of insurance policies are distributed to a plurality of servers in the cluster for synchronous processing, so that the insurance policy data modification processing efficiency can be improved.
In this embodiment, the corresponding target policy data may be obtained according to the policy identifier carried by the policy approval request; the correction data can be obtained by screening the target policy data; original policy data can be obtained according to the policy identification in the target policy data, and the validation data can be sent to the auditing terminal according to the verification result by carrying out validity verification on the validity period field and the modification data in the original policy data; and according to the confirmation information returned by the auditing terminal, the original policy data corresponding to the policy identification can be obtained, the corresponding field of the original policy data is changed according to the correction data, a corresponding batch is generated, and the batch is sent to the service terminal. In the whole modification process, the server automatically verifies the target policy data and automatically modifies the original policy data according to the verification result, so that the manual participation is reduced, and the policy data modification efficiency can be improved; and the server screens the correction data from the target warranty data, and only sends the correction data to the auditing terminal, so that the data transmission load of the server can be reduced, the auditing task amount of the auditing terminal can be reduced, and the warranty data correction efficiency can be improved.
In one embodiment, the target policy data comprises a JSON string; the step of screening the target policy data to obtain the correction data comprises the following steps: acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression; acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks; determining the traversal direction of the multi-segment node character strings; and traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened multiple character strings as correction data.
When a business person carries out a correction operation on one or more fields on the bill correction page, the business terminal adds correction marks in corresponding field names according to the correction operation. The wholesale identification is a kind of mark for the field being wholesale. The correction mark may be a preset character or a preset character string inserted at a field name preset position. For example, if the applicant name is changed, a "New" string may be added before the corresponding field name "Policy Holder".
And the service terminal generates the JSON object by utilizing a plurality of fields of the policy correction page. The JSON object comprises a plurality of nodes, each node comprises a plurality of key value pairs, and each key value pair comprises a key name and a key value. One key name may correspond to multiple key values, each of which may be a key-value pair. For example, a JSON object may be:
Figure BDA0001500768180000101
the JSON object comprises two nodes, and each node comprises 4 key value pairs. The key name "new polarity holder" corresponds to the three key values "name": hotel "," code ": 20929 × 211" and "business": hotel ". Multiple nodes in the JSON object include the same key name. It should be noted that, in actual operation, the number of nodes in the JSON object and the number of key value pairs in each node are large.
And the server converts the JSON object into a JSON character string to obtain target policy data.
The server prestores a first regular expression, which includes a start identifier and an end identifier. For example, the first regular expression may be: "\\\\\? \ \ new polarity holder \ \ new polarity \? \ \ duration of origin \ \ \? \ \ \ \ premum \ \ \? \ \ \\ ". Wherein \isfollowed by a key name, whereby id, new polarity holder, duration of origin and premium are the key names, respectively; \ \ \? The key value corresponding to the key name is represented, \ \ represents the end of a key value pair; thus, in this first regular expression, the start identifier is the key name id and the end identifier is the key-value pair whose key name is premium. The server splits the JSON character string into a plurality of sections of node character strings by using the first regular expression. For example, one of the node strings may be: "new id": 4628912 "," new polarity hole r ": name {" name ": hotel", "code": 20929 × (211), "business": hotel "}" duration on of origin ": 2015", "03", "09", "2020", "03", "09" ], "premium": 2000 "".
In one embodiment, the server prestores a plurality of garbage characters. The unwanted characters may be ' { ', ', ' [ ', ' ] ', or spaces, etc. Before splitting the JSON character string, the server can obtain useless characters, match the useless characters with characters in the JSON character string respectively, and filter the successfully matched characters as the useless characters in the JSON character string. For example, the node string in the above example may be "id 4628912 newfootball hotel code20929 × 211business hotel duration of origin 2015030920200309 premium 2000". Useless characters in the JSON character string are filtered, the length of the JSON character string can be reduced, accordingly, the traversing time of the JSON character string can be reduced, and the extraction efficiency of the correction data can be improved.
Because the data needing to be corrected in different insurance policies may be different, the corrected data needing to be extracted in the character strings of the corresponding nodes are also different. Whereby the server presets a plurality of second regular expressions. Each second regular expression comprises one or more target character strings with the correction identifications. For example, the second regular expression may be: "\\\\\? \ \ new polarity holder \ \ new polarity \? \ \ and ", so that the target string includes the key names" new id "and" new polarity holder name "and the corresponding key values, respectively.
Each second regular expression has a corresponding traversal direction for the node string. In other words, the server needs to determine, for each second regular expression, a corresponding traversal direction for the node string. Specifically, the server determines the traversal direction of the node character string according to the position of the character string matched with the second regular expression in the node character string. Because a plurality of node character strings have the same key name, the traversing direction of all the node character strings can be determined by the position of the character string matched with the second regular expression in one node character string. And the server randomly acquires a section of node character string, performs forward traversal on the section of node character string, and determines the position of the character string matched with the second regular expression in the section of node character string. The location of the node string includes a first location and a second location. Wherein the first position is a position close to the first character of the node character string; the second position is the position near the last character of the string of node characters. When the character string matched with the second regular expression is located at the first position, the server determines the traversal direction of the multi-segment node character string as the first traversal direction. And when the character string matched with the second regular expression is located at a second position, the server determines the traversal direction of the multi-segment node character string as a second traversal direction. And the server determines the corresponding traversal direction of the node character string aiming at each second regular expression in the manner.
And calling multithreading by the server, and synchronously traversing the plurality of node character strings according to the determined traversing direction. And when traversing to a character string matched with the corresponding second regular expression in one node character string, stopping traversing the node character string, and extracting the character string matched with the second regular expression as correction data. For example, the wholesale data corresponding to the node character string may be "newplakholdername. And the server performs multiple traversals on each section of node character string to search the character string matched with each second regular expression. It is easy to understand that when a node string fails to match a second regular expression, it indicates that the corresponding field in the policy corresponding to the node string is not modified.
And the server takes the screened character strings as correction data corresponding to the corresponding insurance policy according to the insurance policy identification, and extracts the correction data. And when the extraction of the correction data is finished, the server finishes the thread corresponding to the node character string so as to reduce the occupation of server resources. And the server sends the selected correction data corresponding to the plurality of node character strings to the auditing terminal.
In a traditional mode, in order to extract correction data, a server needs to convert a JSON character string into a JSON object and extract the correction data from the JSON object, but when the data volume of the JSON data is large, the data conversion time is long, and the screening efficiency of the JSON data is reduced. In the embodiment, the JSON character string is divided into the multiple sections by the first regular expression, so that the JSON character string does not need to be converted into the JSON object, and the correction data can be directly extracted from the JSON character string by the second regular expression, so that the efficiency of extracting the correction data from the JSON character string can be improved, and the correction processing efficiency of the policy data can be improved.
In one embodiment, the step of verifying the validity of the validity period field and the wholesale data comprises: acquiring correction request time, and verifying the validity period field by comparing whether the correction request time is in the insurance period; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the verification fails, returning an input time format illegal prompt to the service terminal; when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
The raw policy data includes a plurality of validity fields, such as insurance period, insurance validation time, and the like. When receiving the warrant correction request, the server acquires the corresponding correction request time, identifies whether the correction request time is in the corresponding insurance period, and judges that the corresponding warrant is in the state of being kept so as to check the validity of the valid period field.
The server also checks the legality of the screened correction data. Specifically, the server checks whether the correction item in the correction data belongs to a preset correction allowing item. When the correction item in the correction data belongs to the permission correction item, if the correction item includes time information such as the insurable time, the insurance effective time or the insurance ending time, the server may extract a first time character string, such as "2015229" or "15-2-29", from the correction value corresponding to the corresponding correction item. Specifically, the server presets a plurality of time string templates. The time string templates written in different programming languages may be different. For example, the time string template corresponding to the JS language (JavaScript, an transliterated scripting language) can be ^ d [4] [ - ] \ d [1,2] [ - ] \ d [1,2] $; the time string template corresponding to the Java language may be yyyy-MM-dd. The time string template indicates that the "year" in the time string input by the service terminal can be four digits, such as "2015"; the ' year ' and the ' month ' can be connected by adopting a ' character; "month" and "day" may be one or two digits, respectively. It is to be understood that the time string inputted by the service terminal may also include "hour", "minute" and "second", such as "2015-2-2909: 20: 22", without limitation. And the server matches the first time character string with the time character string template so as to carry out format verification on the first time character string.
And when the first time character string format is failed to be checked, the server returns an input time format illegal prompt to the service terminal. When the first time string format passes the verification, the server divides the first time string into a plurality of source strings by using the time string template. The source character strings correspond to time nodes such as "year", "month" and "day". For example, in the above example, the plurality of source strings may be "2015", "2", "29". And the server generates target character strings corresponding to the source character strings according to a preset rule, and compares the source character strings with the corresponding target character strings to check the legality of the first time character strings.
In one embodiment, the step of generating target character strings corresponding to a plurality of source character strings according to a preset rule, and comparing the plurality of source character strings with the corresponding target character strings to check the validity of the first time character string includes: respectively associating a plurality of source character strings serving as variable values with a preset source variable name; converting the first time string to a date object and converting the date object to a second time string; dividing the second time string into a plurality of target strings; respectively associating a plurality of target character strings serving as variable values with a preset target variable name; and matching the plurality of source character strings with the corresponding target character strings according to the corresponding relation between the source variable names and the target variable names, wherein when the source character strings and the corresponding target character strings are successfully matched respectively, the validity check of the first time character strings is passed.
The server associates a plurality of source character strings as variable values with a preset source variable name respectively so as to distinguish and store each source character string by using the source variable name, for example, the source variable name a1 may correspond to the source character string "year", a2 may correspond to the source character string "month", A3 may correspond to the source character string "day", and the like. In the above example, a1 may correspond to "2015", a2 may correspond to "2", and A3 may correspond to "29".
The server converts the first time string to a date object using a first system method. The first system method may be string. The date object is a data type provided in javascript (an interpreted scripting language) that can manipulate the date and time. The date object may be a time difference in ms (milliseconds) between the input time and the standard time. The input time refers to the time corresponding to the first time string, such as 201522920: 20: 00. The standard time is 19701100: 00: 00. In the above example, the date object may be T ═ C (2015 × a +2 × B +29 × C +20 × D +20 × E) - (1970 × a +1 × B +1 × C). Wherein, T is the date object, a 365 60 1000, B24 60 1000, C60 1000, D60 1000. And the server converts the date object by using a second system method to obtain a second time character string. Tostring () and the like may be the second system method.
It should be noted that the second time string is a legal string. For ease of understanding, the above conversion logic of the second time string may be summarized as: and if the first time character string is an illegal character string, the server acquires legal time corresponding to the input time, calculates the time difference between the legal time and the input time, and linearly superposes the input time and the time difference to obtain a second time character string. For example, in the above example, since 2015 is an annual year, the legal time corresponding to the input time 2015229 may be 2015228, the input time may be 1 day more than the legal time, and the second time string may be 201531.
The server divides the second time string into a plurality of target strings by using the time string template. The server associates a plurality of target character strings as variable values with a preset target variable name respectively so as to distinguish and store each target character string by using the target variable name, for example, the target variable name B1 may correspond to the target character string "year", B2 may correspond to the target character string "month", and B3 may correspond to the target character string "day". In the above example, B1 may correspond to "2015", B2 may correspond to "3", and B3 may correspond to "1". The server prestores the corresponding relation between each source variable name and each target variable name, such as A1 corresponding to B1, A2 corresponding to B2, and so on. And according to the corresponding relation, the server matches the source character strings with the corresponding target character strings, and when the source character strings and the corresponding target character strings are successfully matched respectively, the legality check of the character strings at the first time is passed. Otherwise, the data indicates that the correction data input by the service personnel at the service terminal has illegal data.
In the traditional mode, a year range, a month range, a day range, a hour-minute-second range, leap years or the next year and the like are calculated according to a formula so as to check a first time character string, and the check logic is complex, so that a programming code is long. In the embodiment, the check of the character string at the first time can be completed only by simple character string segmentation, conversion and matching without calculation, and the check logic is simple; and the character string conversion can be realized by using a system method, so that the code logic is simple, the code amount can be saved, and the resource overhead of a server is reduced.
In one embodiment, the step of changing the corresponding field in the original policy data according to the wholesale data to generate the corresponding wholesale list includes: generating a correction task by using the correction data and the original policy data, and recording a task identifier and task data corresponding to the correction task to a first task table of a database; marking the correction state of the correction task as to-be-corrected in the first task table; screening the first task table, screening out the task identification of which the correction state is to be corrected, and recording the screened task identification to a second task table; and extracting a preset number of task identifiers from the second task table, capturing task data of corresponding correction tasks from the first task table according to the extracted task identifiers, executing the corresponding correction tasks in batches by using the captured task data, and generating a batch list corresponding to each of the plurality of correction tasks.
The server is provided with a database, and the first task table and the second task table are stored in the database. And the server generates a corresponding correction task by using the correction data corresponding to each policy identification and the original policy data. Each correction task has a corresponding correction state, such as to-be-corrected, correction completed, and the like. The server records the task identifications and the task data corresponding to the plurality of correction tasks to a first task table of the database, and marks the correction state of the newly added correction tasks to be corrected in the first task table. And the server screens the first task table, screens out the task identifier of which the correction state is to be corrected, and records the screened task identifier to the second task table.
The server acquires the grabbing conditions of the preset task identifiers, extracts a preset number of task identifiers from the second task list according to the grabbing conditions, and grabs the task data of the corresponding correction task from the first task list according to the extracted task identifiers. The grabbing conditions comprise the applicant, grabbing sequence or grabbing quantity and the like. Orderly grabbing or random grabbing is realized by setting a grabbing sequence. And the item-by-item grabbing or batch grabbing is realized by setting the grabbing quantity. The batch grabbing can reduce the task data grabbing time, and further can improve the task processing efficiency. The server executes corresponding correction tasks in batch by using the captured task data, namely, changes corresponding fields in the original policy data according to the correction data in the manner to generate a plurality of correction tasks respectively corresponding to the correction tasks. And the batch execution of a plurality of correction tasks can improve the correction processing efficiency of the policy data.
In another embodiment, when the correction task is completed, the correction state of the corresponding correction task is changed to be corrected in the first task table, and the task identifier with the correction state of being corrected is deleted in the second task table; when a batch sheet query request sent by a service terminal is received, a corresponding batch sheet is queried according to a policy identification carried by the batch sheet query request, and the queried batch sheet is sent to the service terminal.
When the correction task is completed, the server changes the correction state of the corresponding correction task into correction completion in the first task table, and deletes the task identifier of which the correction state is correction completion in the second task table, so that only the task identifier of which the processing state is to-be-processed task data is recorded in the second task table, and further the server can only capture the to-be-processed task data from the task data of which the processing state is to-be-processed when capturing the task data by using the method, thereby reducing the task data capturing time and improving the correction task processing efficiency. When a batch sheet query request sent by the service terminal is received, the server queries the corresponding batch sheet according to the policy identification carried by the batch sheet query request, and sends the queried batch sheet to the service terminal.
In this embodiment, the task identifier whose processing state is to be processed can be screened out by screening the first task table; the task identification to be processed is recorded into the second task table, and when the task needs to be executed so as to carry out business processing, the task identification to be processed can be extracted from the second task table, so that the task data to be processed can be directly captured in the first task table, interference caused by the task data in other processing states is avoided, the capturing time of the task data can be effectively reduced, and the warranty data correction efficiency can be improved. It is easy to understand that when the data volume of the task data is large, the above effects are particularly prominent, and the efficiency of modifying the massive insurance policy can be greatly improved.
In one embodiment, the step of changing the corresponding field in the original policy data according to the wholesale data comprises: when the batch modification item comprises a guarantee time, inquiring a corresponding formula character string according to the policy identification; the formula string includes a plurality of premium variation factors; extracting premium change parameters from the correction data, and replacing corresponding premium change factors in the formula character string by using the extracted premium change parameters; splitting the replaced formula character string into a plurality of operation formulas according to a preset rule, and determining the calculation sequence of the plurality of operation formulas according to the preset operation rule; and calculating the result value of each operation expression according to the calculation sequence, obtaining a premium change value according to the result value, and changing the premium of the original policy data by using the premium change value.
Different insurance products have corresponding premium calculation formulas. When the correction item comprises the insurance premium, the server calculates the insurance premium change value according to a corresponding insurance premium calculation formula, and corrects the insurance policy by using the insurance premium change value. The premium calculation formula is usually complex, and in the conventional mode, developers need to realize complex and diverse premium calculation functions by programming after understanding the calculation logic of each premium calculation formula, so that the design efficiency of insurance products is reduced, programming codes are long, the code realization logic is complex, and later modification is not facilitated.
In order to solve the above problems, the server directly stores premium calculation formulas corresponding to a plurality of insurance products as character strings (hereinafter, referred to as "formula character strings"), and analyzes the formula character strings according to a preset general analysis logic, so that the premium calculation function of the corresponding premium calculation formulas can be realized. Specifically, when the item modification includes a warranty, the server queries a corresponding formula character string according to the warranty identifier, and verifies the formula character string according to a preset verification rule. The preset check rules include whether the numbers of the left and right brackets are equal, whether the left bracket or the right bracket is directly connected with an operator (plus sign, minus sign, multiplication sign or division sign), whether the operator is directly connected with the operator, and whether the left bracket is directly connected with the right bracket. When the check is passed, the expression formula character string accords with a preset algorithm, and the analysis can be carried out according to a universal analysis logic.
The formula string includes a plurality of premium variation factors, such as participation amount, participation number, and the like. When the formula character string passes the verification, the server extracts the premium change parameter from the modification value corresponding to the premium modification item, and replaces the corresponding premium change factor in the formula character string by using the premium change parameter. And the server analyzes the replaced formula character string according to the general analysis logic. Specifically, the general parsing logic includes preset rules and algorithms. And the server splits the replaced formula character string into a plurality of operation formulas according to a preset rule. Each expression includes two operators and an operator, e.g., a + b, located between the two operators. The server determines the calculation sequence of a plurality of operation formulas according to a preset operation rule, calculates the result value of each operation formula according to the calculation sequence, and obtains the premium change value according to the result value.
In one embodiment, the step of calculating the result value of each operation expression in the calculation order and obtaining the premium change value based on the result value includes: calculating a first result value corresponding to the first sequential operation expression, and replacing the first sequential operation expression in the formula character string by using the first result value to obtain a simplified formula character string; extracting a next sequential operation formula from the simplified formula character string, calculating a next result value corresponding to the next sequential operation formula, and replacing the corresponding operation formula in the simplified formula character string by using the next result value to obtain a re-simplified formula character string; detecting whether the final sequential operation expression is calculated to obtain a corresponding final result value, and returning to the step of extracting the next sequential operation expression from the simplified formula character string when the final result value is not calculated; and when the final result value is obtained through calculation, the final result value is used as the premium change value.
It should be noted that, a plurality of operation expressions obtained by splitting a formula character string are not obtained by splitting at one time, but a corresponding result value is obtained by calculation after one operation expression is extracted, the result value is substituted into the last simplified formula character string, and then the next sequential operation expression is extracted from the simplified formula character string, and so on. For example, assuming that the formula string is ((a + b)/c × d) ^ e, the first sequential operation formula obtained by splitting may be a + b. Assuming that the result value corresponding to the formula a + b is f, the simplified formula string is (f/c × d) ^ b, and the next sequential formula can be f/c.
In this embodiment, the premium calculation formulas corresponding to the plurality of insurance products may be directly stored as formula character strings, and developers need not to understand the premium calculation formulas and need only write one general analysis code for different formula character strings, so that the code logic is simple, the insurance product design efficiency can be improved, the code logic is simple, and the code amount can be reduced. When the premium calculation formula needs to be modified, the corresponding formula character string which is easy to understand is directly modified, so that the modification efficiency of the premium calculation formula is improved.
In one embodiment, as shown in fig. 3, there is provided a policy data modification apparatus including: a screening module 302, a verification module 304, and a correction module 306, wherein:
the screening module 302 is configured to receive a policy correction request sent by a service terminal, where the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification; and screening the target policy data to obtain correction data.
The verification module 304 is used for acquiring corresponding original policy data according to the policy identifier; the original policy data includes a validity period field; the validity of the validity period field and the correction data is checked.
The correction module 306 is configured to send the correction data to the audit terminal corresponding to the audit identifier when the verification passes; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
In one embodiment, the validity period field includes an insurance period; the correction data comprises the item and a corresponding correction value; the checking module 304 is further configured to obtain a correction request time, and check the validity period field by comparing whether the correction request time is within the insurance period; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the verification fails, returning an input time format illegal prompt to the service terminal; when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
The policy data modification processing apparatus may be implemented in the form of a computer program that can run on a server as shown in fig. 4.
In one embodiment, a server is provided, as shown in FIG. 4, comprising a processor, a storage device, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The storage of the server includes one or more non-volatile storage media, one or more internal memories. The non-volatile storage medium of the server stores an operating system, a computer program, and a database. The internal memory of the server provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the server is used for connecting and communicating with an external terminal through a network, for example, receiving target policy data sent by a service terminal, sending correction data to an audit terminal, and the like. The computer program is executed by a processor to implement a policy data modification processing method. The processor, when executing the computer program, may perform the following steps: receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data comprises policy identification and obtains corresponding original policy data according to the policy identification; the original policy data includes a validity period field; (ii) a Screening target policy data to obtain correction data; verifying the validity of the validity period field and the correction data; when the verification is passed, the correction data is sent to an auditing terminal corresponding to the auditing identifier; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the target policy data comprises a JSON string; the processor, when executing the computer program, further performs the steps of: acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression; acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks; determining the traversal direction of the multi-segment node character strings; and traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened multiple character strings as correction data.
In one embodiment, the validity period field includes an insurance period; the correction data comprises the item and a corresponding correction value; the processor, when executing the computer program, further performs the steps of: acquiring correction request time, and verifying the validity period field by comparing whether the correction request time is in the insurance period; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the verification fails, returning an input time format illegal prompt to the service terminal; when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
In one embodiment, the processor, when executing the computer program, further performs the steps of: respectively associating a plurality of source character strings serving as variable values with a preset source variable name; converting the first time string to a date object and converting the date object to a second time string; dividing the second time string into a plurality of target strings; respectively associating a plurality of target character strings serving as variable values with a preset target variable name; and matching the plurality of source character strings with the corresponding target character strings according to the corresponding relation between the source variable names and the target variable names, wherein when the source character strings and the corresponding target character strings are successfully matched respectively, the validity check of the first time character strings is passed.
In one embodiment, the processor, when executing the computer program, further performs the steps of: generating a correction task by using the correction data and the original policy data, and recording a task identifier and task data corresponding to the correction task to a first task table of a database; marking the correction state of the correction task as to-be-corrected in the first task table; screening the first task table, screening out the task identification of which the correction state is to be corrected, and recording the screened task identification to a second task table; and extracting a preset number of task identifiers from the second task table, capturing task data of corresponding correction tasks from the first task table according to the extracted task identifiers, executing the corresponding correction tasks in batches by using the captured task data, and generating a batch list corresponding to each of the plurality of correction tasks.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the batch modification item comprises a guarantee time, inquiring a corresponding formula character string according to the policy identification; the formula string includes a plurality of premium variation factors; extracting premium change parameters from the correction data, and replacing corresponding premium change factors in the formula character string by using the extracted premium change parameters; splitting the replaced formula character string into a plurality of operation formulas according to a preset rule, and determining the calculation sequence of the plurality of operation formulas according to the preset operation rule; and calculating the result value of each operation expression according to the calculation sequence, obtaining a premium change value according to the result value, and changing the premium of the original policy data by using the premium change value.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the computer program to: receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification; acquiring corresponding original policy data according to the policy identification; the original policy data includes a validity period field; screening target policy data to obtain correction data; verifying the validity of the validity period field and the correction data; when the verification is passed, the correction data is sent to an auditing terminal corresponding to the auditing identifier; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
In one embodiment, the target policy data comprises a JSON string; the computer program when executed by the processor further performs the steps of: acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression; acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks; determining the traversal direction of the multi-segment node character strings; and traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened multiple character strings as correction data.
In one embodiment, the validity period field includes an insurance period; the correction data comprises the item and a corresponding correction value; the computer program when executed by the processor further performs the steps of: acquiring correction request time, and verifying the validity period field by comparing whether the correction request time is in the insurance period; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the verification fails, returning an input time format illegal prompt to the service terminal; when the verification is passed, the first time character string is divided into a plurality of source character strings, target character strings corresponding to the source character strings are generated according to a preset rule, and the legality of the first time character string is verified by comparing the source character strings with the corresponding target character strings.
In one embodiment, the computer program when executed by the processor further performs the steps of: respectively associating a plurality of source character strings serving as variable values with a preset source variable name; converting the first time string to a date object and converting the date object to a second time string; dividing the second time string into a plurality of target strings; respectively associating a plurality of target character strings serving as variable values with a preset target variable name; and matching the plurality of source character strings with the corresponding target character strings according to the corresponding relation between the source variable names and the target variable names, wherein when the source character strings and the corresponding target character strings are successfully matched respectively, the validity check of the first time character strings is passed.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating a correction task by using the correction data and the original policy data, and recording a task identifier and task data corresponding to the correction task to a first task table of a database; marking the correction state of the correction task as to-be-corrected in the first task table; screening the first task table, screening out the task identification of which the correction state is to be corrected, and recording the screened task identification to a second task table; and extracting a preset number of task identifiers from the second task table, capturing task data of corresponding correction tasks from the first task table according to the extracted task identifiers, executing the corresponding correction tasks in batches by using the captured task data, and generating a batch list corresponding to each of the plurality of correction tasks.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the batch modification item comprises a guarantee time, inquiring a corresponding formula character string according to the policy identification; the formula string includes a plurality of premium variation factors; extracting premium change parameters from the correction data, and replacing corresponding premium change factors in the formula character string by using the extracted premium change parameters; splitting the replaced formula character string into a plurality of operation formulas according to a preset rule, and determining the calculation sequence of the plurality of operation formulas according to the preset operation rule; and calculating the result value of each operation expression according to the calculation sequence, obtaining a premium change value according to the result value, and changing the premium of the original policy data by using the premium change value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The computer readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or other storage media.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A warranty data correction processing method comprises the following steps:
receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data includes a policy identification; the target policy data comprises a JSON character string;
acquiring corresponding original policy data according to the policy identification; the original policy data includes a validity period field;
acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression;
acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks;
randomly acquiring a section of node character string, and traversing the acquired node character string;
when traversing to the character string matched with the second regular expression, determining the position of the matched character string at the node character string; the positions of the node character strings comprise a first position and a second position; the first position is a position near a first character of the node character string, and the second position is a position near a last character of the node character string;
when the matched character strings are located at the first positions of the node character strings, respectively determining the traversing directions of the multiple sections of the node character strings as first traversing directions; when the matched character strings are located at the second positions of the node character strings, respectively determining the traversing directions of the multiple sections of the node character strings as second traversing directions; the first traversal direction is forward traversal; the forward traversal direction is traversal from the first character to the last character of the node character string; the second traversal direction is a negative traversal; the negative traversal direction is from the last character to the first character of the node character string;
traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened multiple character strings as correction data; the correction data comprises correction items and corresponding correction values;
checking the validity field;
checking whether the correction items in the correction data belong to preset allowable correction items or not;
when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template;
when the format check fails, returning an input time format illegal prompt to the service terminal;
when the format check is passed, dividing the first time character string into a plurality of source character strings, generating target character strings corresponding to the source character strings according to a preset rule, and comparing the source character strings with the corresponding target character strings to check the legality of the first time character string;
when the validity period field and the validity check of the first time character string pass, the batch modification data are sent to an auditing terminal corresponding to the auditing identifier;
and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
2. The method of claim 1, wherein the modifying item is a field name corresponding to the modified field, and the modifying value is a corresponding field value.
3. The method of claim 1, wherein the validity period field comprises an insurance period; the step of checking the validity field includes:
and acquiring the correction request time, and checking the validity period field by comparing whether the correction request time is in the insurance period.
4. The method according to claim 3, wherein the step of generating target strings corresponding to the plurality of source strings according to the preset rule, and checking the validity of the first time string by comparing the plurality of source strings with the corresponding target strings comprises:
respectively associating a plurality of source character strings serving as variable values with a preset source variable name;
converting the first time string to a date object and converting the date object to a second time string;
dividing the second time string into a plurality of target strings;
respectively associating a plurality of target character strings serving as variable values with a preset target variable name;
and matching the plurality of source character strings with the corresponding target character strings according to the corresponding relation between the source variable names and the target variable names, wherein when the source character strings and the corresponding target character strings are successfully matched respectively, the validity check of the first time character strings is passed.
5. The method according to claim 1, wherein the step of generating a corresponding batch by changing a corresponding field in the original policy data according to the wholesale data comprises:
generating a correction task by using the correction data and the original policy data, and recording a task identifier and task data corresponding to the correction task to a first task table of a database;
marking the correction state of the correction task as to-be-corrected in the first task table;
screening the first task table, screening out the task identification of which the correction state is to be corrected, and recording the screened task identification to a second task table;
and extracting a preset number of task identifiers from the second task table, capturing task data of corresponding correction tasks from the first task table according to the extracted task identifiers, executing the corresponding correction tasks in batches by using the captured task data, and generating a batch list corresponding to each of the plurality of correction tasks.
6. The method of claim 1, wherein the step of altering the corresponding field in the original policy data based on the wholesale data comprises:
when the batch modification item comprises a guarantee time, inquiring a corresponding formula character string according to the policy identification; the formula string includes a plurality of premium variation factors;
extracting premium change parameters from the correction data, and replacing corresponding premium change factors in the formula character string by using the extracted premium change parameters;
splitting the replaced formula character string into a plurality of operation formulas according to a preset rule, and determining the calculation sequence of the plurality of operation formulas according to the preset operation rule;
and calculating the result value of each operation expression according to the calculation sequence, obtaining a premium change value according to the result value, and changing the premium of the original policy data by using the premium change value.
7. A policy data wholesale processing apparatus comprising:
the screening module is used for receiving a policy correction request sent by a service terminal, wherein the policy correction request carries target policy data and an audit identifier; the target policy data comprises a policy identification, a validity period field and a JSON character string; acquiring a first regular expression, and splitting the JSON character string into a plurality of sections of node character strings by using the first regular expression; acquiring a second regular expression, wherein the second regular expression comprises one or more target character strings with correction marks; randomly acquiring a section of node character string, and traversing the acquired node character string; when traversing to the character string matched with the second regular expression, determining the position of the matched character string at the node character string; the positions of the node character strings comprise a first position and a second position; the first position is a position near a first character of the node character string, and the second position is a position near a last character of the node character string; when the matched character strings are located at the first positions of the node character strings, respectively determining the traversing directions of the multiple sections of the node character strings as first traversing directions; when the matched character strings are located at the second positions of the node character strings, respectively determining the traversing directions of the multiple sections of the node character strings as second traversing directions; the first traversal direction is forward traversal; the forward traversal direction is traversal from the first character to the last character of the node character string; the second traversal direction is a negative traversal; the negative traversal direction is from the last character to the first character of the node character string; traversing the multiple sections of node character strings according to the traversing direction, screening the correspondingly corrected character strings in the multiple sections of node character strings according to the target character strings in the second regular expression, and taking the screened multiple character strings as correction data; the correction data comprises correction items and corresponding correction values;
the verification module is used for acquiring corresponding original policy data according to the policy identifier; the original policy data includes a validity period field; checking the validity field; checking whether the correction items in the correction data belong to preset allowable correction items or not; when the correction item belongs to the permission correction item and comprises time, extracting a first time character string from the correction data, acquiring a time character string template, and performing format verification on the first time character string by using the time character string template; when the format check fails, returning an input time format illegal prompt to the service terminal; when the format check is passed, dividing the first time character string into a plurality of source character strings, generating target character strings corresponding to the source character strings according to a preset rule, and comparing the source character strings with the corresponding target character strings to check the legality of the first time character string;
the correction module is used for sending the correction data to an auditing terminal corresponding to the auditing identifier when the validity check of the validity period field and the first time character string passes; and when receiving the confirmation information returned by the auditing terminal, changing the corresponding field in the original policy data according to the correction data to generate a corresponding policy, and sending the policy to the service terminal.
8. The apparatus of claim 7, wherein the validity period field comprises an insurance period; the correction data comprises correction items and corresponding correction values; the checking module is further used for obtaining the correction request time and checking the validity period field by comparing whether the correction request time is within the insurance period.
9. A server comprising a storage device and a processor, the storage device having a computer program stored thereon, wherein the processor implements the steps of the method according to any one of claims 1-6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201711298513.5A 2017-12-08 2017-12-08 Policy data modification processing method, device, server and storage medium Active CN107918865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711298513.5A CN107918865B (en) 2017-12-08 2017-12-08 Policy data modification processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711298513.5A CN107918865B (en) 2017-12-08 2017-12-08 Policy data modification processing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN107918865A CN107918865A (en) 2018-04-17
CN107918865B true CN107918865B (en) 2021-05-14

Family

ID=61893046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711298513.5A Active CN107918865B (en) 2017-12-08 2017-12-08 Policy data modification processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN107918865B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765172B (en) * 2018-05-25 2023-06-23 中国平安人寿保险股份有限公司 Problem positioning method, device, storage medium and apparatus
CN109377383A (en) * 2018-08-31 2019-02-22 平安科技(深圳)有限公司 Product data synchronous method, device, computer equipment and storage medium
CN109409817A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Insurance data checking method, device, computer equipment and storage medium
CN108898468A (en) * 2018-09-04 2018-11-27 中国平安财产保险股份有限公司 Information asynchronous processing method, device, computer equipment and storage medium
CN109285080B (en) * 2018-09-04 2023-04-04 中国平安财产保险股份有限公司 Policy information rolling processing method and device, computer equipment and storage medium
CN109447820B (en) * 2018-09-18 2023-09-15 平安科技(深圳)有限公司 Data processing method, device, computer equipment and storage medium
CN109359939A (en) * 2018-09-26 2019-02-19 中国平安人寿保险股份有限公司 Business datum method of calibration, device, computer equipment and storage medium
CN109522743B (en) * 2018-10-27 2023-08-22 平安医疗健康管理股份有限公司 Medical insurance bill auditing method, block chain link point equipment and system
CN109685669A (en) * 2018-12-11 2019-04-26 北京量子保科技有限公司 A kind of policy information data processing method and system
CN109658232A (en) * 2018-12-19 2019-04-19 泰康保险集团股份有限公司 Insure order processing method, apparatus, system, medium and electronic equipment
CN109902095B (en) * 2019-01-25 2023-10-24 平安科技(深圳)有限公司 Policy information updating method, device, terminal and computer readable storage medium
CN110458508A (en) * 2019-07-05 2019-11-15 中国平安财产保险股份有限公司 Processing method, processing unit and the Related product of document information
CN110598466B (en) * 2019-07-30 2021-06-15 百度时代网络技术(北京)有限公司 Offline field checking method, device and equipment and computer readable storage medium
CN111815459A (en) * 2019-11-20 2020-10-23 国泰财产保险有限责任公司 Overdue termination method for insurance approval pricing
CN111179097B (en) * 2019-11-28 2023-07-28 泰康保险集团股份有限公司 Method, device, electronic equipment and storage medium for modifying warranty
CN111161088A (en) * 2019-12-31 2020-05-15 上海亿保健康管理有限公司 Bill processing method, device and equipment
CN111782987A (en) * 2020-06-23 2020-10-16 广州云徙科技有限公司 Information change rechecking method and system
CN112069385B (en) * 2020-09-04 2023-09-22 中国平安人寿保险股份有限公司 Policy data processing method, equipment, server and storage medium
CN112131291B (en) * 2020-09-11 2023-12-15 重庆誉存大数据科技有限公司 Structured analysis method, device and equipment based on JSON data and storage medium
CN113672634A (en) * 2021-08-30 2021-11-19 中国平安人寿保险股份有限公司 Policy data verification method, device, equipment and storage medium
CN114399394A (en) * 2022-01-14 2022-04-26 长城人寿保险股份有限公司 Insurance contract data changing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011150336A2 (en) * 2010-05-27 2011-12-01 The Travelers Companies, Inc. System and method for electronic policyholder review using dynamic interviews
CN103631570A (en) * 2012-08-21 2014-03-12 镇江雅迅软件有限责任公司 Form self-definition method
CN105824801B (en) * 2015-03-16 2018-06-15 国家计算机网络与信息安全管理中心 A kind of quick abstracting method of entity relationship based on automatic machine
CN105069560B (en) * 2015-07-30 2018-05-01 中国科学院软件研究所 The record information of a kind of knowledge based storehouse and rule base extracts and signature identification analysis system and method
CN105404620A (en) * 2015-11-20 2016-03-16 华为技术有限公司 Form verification method and apparatus
CN106202004B (en) * 2016-07-13 2019-10-11 上海轻维软件有限公司 Combined data cutting method based on regular expressions and separator
CN106294673B (en) * 2016-08-08 2020-04-24 杭州玳数科技有限公司 Method and system for analyzing log data in real time by user-defined rule
CN106780045B (en) * 2016-11-15 2019-11-29 平安科技(深圳)有限公司 Policy information corrects method and apparatus

Also Published As

Publication number Publication date
CN107918865A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN107918865B (en) Policy data modification processing method, device, server and storage medium
CN108268593B (en) Method, device, server and storage medium for processing credit card insurance information
CN109492884B (en) Compliance risk information display method and device, computer equipment and storage medium
CN109359939A (en) Business datum method of calibration, device, computer equipment and storage medium
US8838652B2 (en) Techniques for application data scrubbing, reporting, and analysis
US11921575B1 (en) Systems and methods for verifying vehicle identification number (VIN)
CN108959374B (en) Data storage method and device and electronic equipment
CN107463596B (en) Block chain parallel query method and system for setting out-of-chain fault table
CN112308727A (en) Insurance claim settlement service processing method and device
CN111611276A (en) Data query method, device and storage medium
CN112015826B (en) Intelligent contract security detection method based on block chain and related equipment
CN112363997B (en) Data version management method, device and storage medium
CN109214362A (en) Bill processing method and relevant device
CN107451007B (en) Verification method and system of block chain for error correction aiming at added blocks
CN113204747A (en) Account management method, account management device, server and storage medium
CN112860954A (en) Real-time computing method and real-time computing system
US10795880B2 (en) System and method for inter-program file control communication
CN116881275A (en) Database query method, device and storage medium
CN111817859A (en) Data sharing method, device, equipment and storage medium based on zero knowledge proof
CN111105277A (en) Block chain state change transaction tracing method and device
CN115544132A (en) Data import method and system and electronic equipment
US10481836B2 (en) Machine learning method and system for predicting file controls
CN111143399A (en) Data processing method, data processing device, storage medium and computer equipment
CN105653525B (en) Method and system for importing data between account sets
CN113407603B (en) Data export method 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