CN110489275B - Document information processing method and related equipment - Google Patents

Document information processing method and related equipment Download PDF

Info

Publication number
CN110489275B
CN110489275B CN201910669335.5A CN201910669335A CN110489275B CN 110489275 B CN110489275 B CN 110489275B CN 201910669335 A CN201910669335 A CN 201910669335A CN 110489275 B CN110489275 B CN 110489275B
Authority
CN
China
Prior art keywords
target
bill
processing
processing record
information
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
CN201910669335.5A
Other languages
Chinese (zh)
Other versions
CN110489275A (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 CN201910669335.5A priority Critical patent/CN110489275B/en
Publication of CN110489275A publication Critical patent/CN110489275A/en
Application granted granted Critical
Publication of CN110489275B publication Critical patent/CN110489275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a document information processing method and related equipment, wherein the method is applied to the technical field of data processing and comprises the following steps: and acquiring bill information of the target bill under the system time from a storage area corresponding to the target bill based on the bill identifier, identifying at least one target corresponding to the target bill from the bill information, acquiring each processing record of each target closest to the appointed time from the storage area according to a preset acquisition rule, detecting whether each processing record has a preset processing identifier, determining the processing record with the preset processing identifier as a target processing record, and further carrying out reduction processing on the data of the subscript of each corresponding target based on each target processing record in the bill information to obtain the target bill information of the target bill under the appointed time. By adopting the embodiment of the application, the reduction efficiency of the target bill is improved.

Description

Document information processing method and related equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and related device for processing document information.
Background
For a target document comprising a plurality of targets, the target data is backed up in an incremental mode, namely, after the target document is modified, when the modification is needed to be backed up, only the target modified at the time is needed to be backed up. When a user wants to acquire the historical document data of a target document at a certain historical time point, data restoration of a plurality of targets under the target document at the historical time point needs to be realized.
At present, in order to restore data of a plurality of targets at a certain historical time point, the corresponding historical data of each target needs to be queried manually and iterated repeatedly, so that a large amount of performance consumption is caused, and the restoring efficiency is low.
Disclosure of Invention
The embodiment of the application provides a document information processing method and related equipment, which can realize the restoration of data of a plurality of target documents corresponding to targets in a designated time and improve the restoration efficiency of the target documents.
In a first aspect, an embodiment of the present application provides a method for processing document information, where the method is applied to a server, and the method includes:
receiving an acquisition request carrying a bill identifier of a target bill sent by a client, wherein the acquisition request is used for requesting to acquire target bill information of the target bill in a specified time;
Acquiring bill information of the target bill under the system time from a storage area corresponding to the target bill based on the bill identifier;
identifying at least one target object corresponding to the target document from the document information;
acquiring respective corresponding target processing records of each target from the storage area according to the appointed time and a preset acquisition rule, wherein the storage area stores at least one processing record corresponding to at least one target identifier included in the target bill;
and restoring the target data under the corresponding target targets on the basis of each target processing record in the bill information to obtain the target bill information of the target bill under the appointed time.
In a second aspect, an embodiment of the present application provides a document information processing apparatus, where the document information processing apparatus includes a module for executing the method of the first aspect.
In a third aspect, an embodiment of the present application provides a server, where the server includes a processor, a network interface, and a memory, where the processor, the network interface, and the memory are connected to each other, where the network interface is controlled by the processor to send and receive messages, and the memory is used to store a computer program that supports the server to perform the foregoing method, where the computer program includes program instructions, and where the processor is configured to invoke the program instructions to perform the foregoing method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the embodiment of the application, the server can acquire the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identifier, and identify at least one target corresponding to the target bill from the bill information. Further, each processing record of each target object closest to the specified time may be acquired from the storage area according to a preset acquisition rule, whether each processing record has a preset processing identifier is detected, and the processing record having the preset processing identifier is determined as the target processing record. Further, the document information can be subjected to reduction processing on the target data of the corresponding target targets based on each target processing record, so that target document information of the target document in the appointed time can be obtained. By adopting the mode, the data of a plurality of target objects at the appointed time are restored, the corresponding historical data of each target object is not required to be inquired and iterated repeatedly, the processing records of all target objects in the target document, which are closest to the appointed time, are acquired at one time according to the preset acquisition rule, and the restoration of the target document at the appointed time is realized according to the latest processing records. On one hand, the historical data of all target objects are obtained through limited times of inquiry, so that the access times to the database are reduced, and on the other hand, repeated iteration from the time dimension of each target object is not needed, the time complexity of operation is reduced, and the reduction efficiency of target documents is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a document information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of another document information processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic illustration of isomorphic table storage for processing records provided in an embodiment of the present application;
FIG. 4 is a schematic block diagram of a document information processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a server provided in an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The document information processing method can be applied to a server corresponding to a document management platform, and the document management platform is used for providing relevant services for document management. In different business scenarios, the document has different meanings. For example, in the field of insurance, the document may refer to an insurance policy; in other areas (e.g., financial, real estate, etc.), the document may refer to an agreement or contract entered into, etc. Wherein, each bill records a large amount of bill information (such as the information of the insured person corresponding to the policy, the information of the insurance mark, the information of the two parties of contract signing, the information of the contract mark and the like).
Wherein, each bill records a large amount of bill information (such as the information of the insured person corresponding to the policy, the information of the insurance mark, the information of the two parties of contract signing, the information of the contract mark and the like). Illustratively, taking the insurance field as an example, an insurance target can be understood as an insurance object. Specifically, the insurance targets are also called "insurance objects", "insurance items", "objects of insurance guarantee". It is determined according to the requirements of both parties of the insurance contract. Insurance targets, which are the property of the applicant in property insurance, and benefits related to the property; a disease that is life or may occur in life insurance of a person, a retirement person; the responsibility insurance is the civil damage responsibility of the insured person. The insurance targets such as property and related interests should include specific seating places of the targets, some also include interests, the insurance targets such as life and body of people, sex and age of insured persons, and some also include occupation and health conditions of insured persons according to specific dangerous species.
In other fields, contractual targets are objects of contractual legal relationships, and are objects to which contractual parties rights and obligations are commonly directed. The standard is the necessary condition for the contract to be satisfied, and the contract cannot be satisfied without the standard. The subject clauses must be explicitly written to identify the subject name so that the subject can be defined as a right obligation.
For a document, multiple targets may be included, and in this embodiment, the target document is a document including multiple targets. For target documents that include multiple targets, the target data is back-up incrementally, and when a user wants to obtain historical document data (i.e., target document information) for a target document at a specified point in time, the data at the specified point in time needs to be restored for multiple targets under the target document.
At present, in order to restore data of a plurality of targets at a specified time point, the corresponding historical data of each target needs to be queried and iterated repeatedly, so that a great deal of performance consumption is caused, and the restoring efficiency is low.
In order to overcome the above problems, the present application proposes a document information processing method, when receiving an acquisition request for requesting to acquire target document information of a target document at a specified time, at least one target object corresponding to the target document may be identified from the document information, and each processing record of each target object closest to the specified time may be acquired from a storage area according to a preset acquisition rule. Further, whether the preset processing mark exists in each processing record or not can be detected, the processing record with the preset processing mark is determined to be the target processing record, and further reduction processing is carried out on the corresponding target subscript data in the current bill information of the target bill based on each target processing record so as to obtain target bill information of the target bill in the appointed time, so that reduction of a plurality of target data of the target bill in the appointed time is achieved.
It can be seen that, according to the document information processing method provided by the implementation of the application, for the restoration of the data of a plurality of target objects at the appointed time, the corresponding historical data of each target object is not required to be queried and iterated repeatedly, but the processing records of all target objects in the target document closest to the appointed time are acquired at one time according to the preset acquisition rule, and the restoration of the target document at the appointed time is realized according to the latest processing records. On one hand, the historical data of all target objects are obtained through limited times of inquiry, so that the access times to the database are reduced, and on the other hand, repeated iteration from the time dimension of each target object is not needed, the time complexity of operation is reduced, and the reduction efficiency of target documents is improved.
Referring to fig. 1, fig. 1 is a flowchart of a method for processing document information, where the method is applied to a server and may be executed by the server, and as shown in the drawing, the method for processing document information may include:
s101: and receiving an acquisition request carrying a receipt identifier of the target receipt sent by the client, wherein the acquisition request is used for requesting to acquire target receipt information of the target receipt in a specified time.
S102: and acquiring the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identification.
In one embodiment, the server applied in the method can be a server corresponding to the bill management platform, and a user can process any bill through the bill management platform, so that the bill management is realized. In one embodiment, the user can process any document (i.e. the target document) for multiple times according to the own requirement, after each process is completed, the server uses the current document information to update the last historical document information, and stores the updated current document information (i.e. the document information under the system time) and the document identification of the target document in the storage area in an associated manner.
In addition, after each time it is detected that the processing of the target document by the user is completed, the server may perform incremental backup on the targets that are changed this time in the target document, and generate processing records of each changed target, where the processing records are used to record detailed information of each target that is processed this time, such as modifying the target data under the target, deleting the target data under the target, and so on.
The processing of the target document may be updating, such as deleting, modifying, etc., of the data in the target document. Illustratively, taking the insurance domain as an example, assuming that the target document is the policy P, the processing for the target document may include: modifying the applicant, adding the applicant, replacing the applicant a with the applicant B, deleting the applicant, etc., which is then the target in the policy P.
In one embodiment, when a user needs to acquire target document information of a target document at a certain time, a specified time can be selected through a client corresponding to the document management platform, and an acquisition request is input for the target document. In this case, the client may add the document identifier of the target document and the specified time to the acquisition request, and send the acquisition request carrying the specified time and the document identifier to the server corresponding to the document management platform, where the server is used to acquire the target document information of the target document under the specified time.
Further, after the server receives the acquisition request sent by the client, the server may search the historical document information matched with the document identifier in the storage area based on the document identifier carried in the acquisition request, that is, search the historical document information of the target document. Because the storage area stores the historical document data corresponding to the latest update, the server can be used for taking the historical document information of the target document searched in the storage area as the document data (namely the historical document information under the system time) of the latest update of the target document based on the document identifier.
S103: and identifying at least one target object corresponding to the target document from the document information.
In one embodiment, the server may further identify a resource type to which the target document belongs according to the document identifier, and determine a target type corresponding to the resource type from a pre-established correspondence between a preset resource type and a preset target type. Further, the server may detect a type to which each target in the document information belongs, and determine that the target having the type that belongs to the type of the target is the target corresponding to the target document.
The resource type can be understood as a product type corresponding to the target document. By way of example, in the insurance field, different products may be used, the corresponding target types may be different, and the product types may include personal car insurance, personal financial insurance, personal accident insurance, group financial and group financial, and the like. For example, the types of targets of the products in the personal accident risk may be shown in table 1-1, and it may be seen that, for the policy of the personal accident risk, products corresponding to the policy may be further divided into finer categories, that is, each product may correspond to one or more target types.
TABLE 1-1
Figure BDA0002140080180000061
In one embodiment, the document identifier and the resource type corresponding to the target document have a one-to-one correspondence, and the server can determine the resource type to which the target document belongs by identifying the document identifier. For example, assuming that the correspondence between the preset resource type and the preset target type is shown in table 1-1, the server identifies the document identifier, determines that the product corresponding to the target document is MP03000088, and in this case, the server may determine the vehicle as the target type based on the correspondence shown in table 1-1. Further, the server may detect a type to which each target in the document information belongs, and determine that the type to which the target belongs is a target of the vehicle as a target corresponding to the target document.
In one embodiment, for a target document including a plurality of targets, the target data is backed up in an incremental manner, that is, after the target document is processed, a target (hereinafter referred to as a processing target) of the current processing may be recorded, a corresponding processing record for each processing target of the current time is generated, and the processing record is stored in the storage area in association with the current system time. The processing record characterizes detailed processing information of each processing target in the current processing process. And generating a similar processing record for representing the change of the processing target lower data in the processing process every time the target bill is processed.
Taking the insurance field as an example, the target document is a policy P, where the policy P includes a plurality of targets corresponding to the policy P by a plurality of applicant, and the system time is 2019, 4, 1, 13:00, the user processes the policy P, and the process involves modification to the applicant, specifically: and adding the applicant C, and deleting the original applicant A in the policy P. When the processing of the policy P is detected to be completed, the server may determine the applicant C and the applicant a as processing targets, and perform incremental backup on the applicant C and the applicant a, so as to generate a processing record of the current processing for the applicant C and the applicant a, where information represented by the processing record may be shown in tables 1-2. It can be seen that the processing record includes the corresponding target identifier of the processing target of the present processing, the processing item, the processing time and the corresponding processing identifier.
TABLE 1-2
Processing targets Handling matters Processing time Processing identification
Applicant C New addition of 2019.4.1-13:00 Adding identification
Applicant A Pruning 2019.4.1-13:00 Pruning identification
S104: and acquiring the corresponding target processing records of the targets from the storage area according to the designated time and the preset acquisition rule. The storage area stores therein a processing record corresponding to at least one of the at least one target identifier included in the target document.
In one embodiment, after determining the target, the server may query the storage area for at least one first processing record corresponding to the target according to the identifier of the target, and obtain the corresponding target processing record of the target from the at least one first processing record according to the specified time and the preset obtaining rule.
S105: and restoring the corresponding target data under the target targets on the basis of each target processing record in the bill information to obtain target bill information of the target bill under the specified time.
Illustratively, suppose that the target object includes object A and object B, with object processing corresponding to object A recorded as P A The target processing corresponding to the target B is recorded as P B . In this case, the server may use the target processing record P in the document information corresponding to the target document A Restoring the target data under the target A, and recording P by adopting target processing B And (3) carrying out reduction processing on the target data under the target B, thereby realizing data reduction of the target bill under the appointed time.
In one embodiment, after obtaining the target document information of the target document at the specified time, the server may return the target document information to the client, and the user may obtain the target document information through the client.
In one embodiment, before acquiring the bill information of the target bill in the system time from the storage area corresponding to the target bill based on the bill identifier, when receiving the acquiring request of the bill identifier carrying the target bill sent by the client, the server may perform identity authentication on the user corresponding to the acquiring request in a preset authentication mode, where the preset authentication mode includes biometric information authentication and/or password authentication. And if the user passes the authentication, triggering and executing the step of acquiring the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identification.
In one embodiment, when the preset verification mode includes biometric information verification, the server may collect biometric information of the user, compare the biometric information with pre-stored biometric sample information of the user, and if the biometric information of the user obtained by comparison matches the biometric sample information, determine that authentication of the user passes. The biometric information may include fingerprint information, face information, iris information, and the like, among others. In one embodiment, the collection of the biometric information may be accomplished by an electronic device (e.g., a client) that establishes a communication connection with the server, and the electronic device sends the collected biometric information to the server after the collection is completed. Illustratively, the electronic device may be a fingerprint collector for collecting fingerprint information of a user; the camera device can be used for collecting face information or iris information of a user; but also a device provided with a fingerprint sensor and/or a camera.
As a possible implementation manner, the server may collect biological sample information of the user in advance, and store the collected biological sample characteristic information in association with the user identification information in the database. When the server receives an acquisition request submitted by a user, prompt information for prompting the user to input biometric information can be output. Further, the server can acquire the biological characteristic information input by the user through the electronic equipment which establishes communication connection, acquire biological sample information corresponding to the identification information from the database based on the identification information of the user carried in the acquisition request, further compare the biological characteristic information with the biological sample information of the user stored in advance, and if the biological characteristic information input by the user is matched with the biological sample information, determine that the authentication of the user is passed.
In one embodiment, when the preset verification mode includes password information verification, the server may collect password information currently input by the user, compare the password information with prestored password sample information of the user, and if the comparison results in that the password information of the user is matched with the password sample information, determine that the authentication of the user is passed.
In the embodiment of the application, the server can acquire the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identifier, and identify at least one target corresponding to the target bill from the bill information. Further, each processing record of each target object closest to the specified time may be acquired from the storage area according to a preset acquisition rule, whether each processing record has a preset processing identifier is detected, and the processing record having the preset processing identifier is determined as the target processing record. Further, the document information can be subjected to reduction processing on the target data of the corresponding target targets based on each target processing record, so that target document information of the target document in the appointed time can be obtained. By adopting the mode, the data of a plurality of target objects at the appointed time are restored, the corresponding historical data of each target object is not required to be inquired and iterated repeatedly, the processing records of all target objects in the target document, which are closest to the appointed time, are acquired at one time according to the preset acquisition rule, and the restoration of the target document at the appointed time is realized according to the latest processing records. On one hand, the historical data of all target objects are obtained through limited times of inquiry, so that the access times to the database are reduced, and on the other hand, repeated iteration from the time dimension of each target object is not needed, the time complexity of operation is reduced, and the reduction efficiency of target documents is improved.
Referring to fig. 2, fig. 2 is a flowchart of another document information processing method provided in the embodiment of the present application, where the method is applied to a server and may be executed by the server, and as shown in the drawing, the document information processing method may include:
s201: and receiving an acquisition request carrying a receipt identifier of the target receipt sent by the client, wherein the acquisition request is used for requesting to acquire target receipt information of the target receipt in a specified time.
S202: and acquiring the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identification.
S203: at least one target object corresponding to the target document is identified from the document information, and respective corresponding target processing records of each target object are obtained from the storage area according to the designated time and the preset obtaining rule. The storage area stores therein a processing record corresponding to at least one of the at least one target identifier included in the target document.
In one embodiment, the storage structure corresponding to the storage area is an isomorphic table, at least one processing record corresponding to at least one target identifier included in the target document is stored in the isomorphic table, the server may acquire at least one first processing record corresponding to the target from the isomorphic table based on the corresponding identifier of the target, and acquire the target processing record corresponding to the target from the at least one first processing record based on the specified time and a preset acquisition rule.
For example, each processing record in the isomorphic table corresponds to a target identifier, and the server may obtain at least one first processing record corresponding to the target, that is, the processing record belonging to the target, from the isomorphic table based on the corresponding identifier of the target.
In one embodiment, after the user processes the target document, the server generates a processing record for each processing object involved in the current processing process, and during the process of generating the processing record, a target processing identifier matched with each processing object may be determined from at least one preset processing identifier based on the corresponding processing object of each processing object, and the target processing identifier is added in the corresponding processing record of the processing object. Wherein, the preset processing identifier may include at least one of an add identifier, a modify identifier, a replace identifier, and a delete identifier.
For example, the processing identifier is "applicant C", and the processing item corresponding to the "applicant C" is newly added, and the adding identifier may be determined from the preset processing identifiers as the target processing identifier matched with the "applicant C", and the adding identifier may be added in the processing record corresponding to the processing identifier "applicant C". For another example, the processing identifier is "applicant a", and the processing item corresponding to the "applicant a" is modification, and the modification identifier may be determined from the preset processing identifiers as a target processing identifier matched with the "applicant a", and the modification identifier may be added in a processing record corresponding to the processing identifier "applicant a".
In one embodiment, the specific process of the server obtaining the target processing record corresponding to the target object from the at least one target processing record based on the specified time and the preset obtaining rule may include: detecting whether a second processing record closest to the specified time exists in at least one first processing record, and if the second processing record exists and the second processing record is identified to comprise a pruning mark, determining the second processing record as a corresponding target processing record of a target object.
In one embodiment, when detecting that the second processing record does not exist, the server may continue to detect whether a third processing record closest to the target object before the specified time exists in the at least one first processing record, and if the third processing record exists, and if the third processing record is identified as including the add identifier or the modify identifier, determine the third processing record as a corresponding target processing record of the target object.
In one embodiment, if the server detects that the third processing record does not exist, the corresponding raw data of the target object may be determined as the corresponding target processing record of the target object. The original data is data corresponding to the target object when the target document is first ordered.
Illustratively, taking the insurance field as an example, assume that the target object in the target document is an applicant, where the target object includes 15 insured persons of insured person 1, insured person 2, insured person 3, insured person 4, … and insured person 15, and each first processing record in the target document is: 7.01, ordering; b) 7.02 person reduction; c) 7.03 changing people; d) 7.04 person adding; e) 7.05 modifier; f) 7.06 modifier; g) 7.07 person reduction; h) 7.08 adding; i) 7.09 trader. The specified time was 7.05. The first processing record of the target insured life is stored in the isomorphic table as shown in fig. 3. In the figure, "U-modification" is modification identification, "I-addition" is addition identification, "D-subtraction" is deletion identification, and "0-change" is replacement identification.
In this case, the target processing records corresponding to the respective insured life may be acquired in table 2 according to the preset acquisition rule with the specified time 7.05 and the unique identification of the target object. The preset acquisition rule is as follows:
first push forward from back to front at a specified time of 7.05
The last processed record (i.e., the second processed record) after querying 7.05 (without 7.05)
The insured life 1, 10, 11, 12, 13, 8, 9, 14 checks the record without processing and needs to inquire forward
The state of the protected person 2 is I, and the value is not taken
The insured life 3, 4, 5 has a state U and needs to inquire forward
The insured life 6, 7 has a state D (i.e. includes a pruning mark), this time record is taken as the target processing record for the insured life 6 and insured life 7
The last processed record (i.e. the third processed record) before the insured life 1, 10, 11, 12, 13, 3, 4, 5, 8, 9, 14 specified time 7.05 is queried forward
The insured life 1, 3, 8, 11 checks the record without processing, and needs to check the original data to keep
The protected person 10 is in the state of D and does not take on the value
The state of the insured life 11, 14 is I, id is 15, original id is 14, and the value is not taken
The insured life 4, 5, 9, 12, 13 and 15 includes an added or modified logo, this record being taken
Querying the original data of the insured life 1, 3, 8
The insured life 1 does not process the record, and takes the latest bill data of the insured life 1 in the target bill.
Finally, the value result of the target processing record of each insured person is as follows:
the insured life 1: no processing data is generated, and the latest bill data of the insured 1 in the target bill is taken as the target processing record of the insured 1;
the insured life 2: then newly added, not taken;
the insured life 3: before being batched, after being modified, the original data of the insured person 3 in the target bill is taken as a target processing record of the insured person 3;
The insured life 4: the previous processing is newly added, and after the previous processing is modified, the last processing (namely 7.04 processing record) is taken, and the bill data of the insured person 4 in the 7.04 target bill is taken as the target processing record of the insured person 4;
the insured life 5: taking the last processing (namely 7.05 processing record) before after the previous modification, and taking the bill data of the insured person 5 in the 7.05 target bill as the target processing record of the insured person 5;
the insured life 6: before being batched, and then subtracted, taking the last processing (namely 7.07 processing record) and taking the bill data of the insured life 6 in the 7.07 target bill as the target processing record of the insured life 6;
the insured life 7: before batch, after subtracting, taking the last processing (namely 7.07 processing record) and taking the bill data of the insured person 7 in the 7.07 target bill as the target processing record of the insured person 7;
the insured life 8: before being batched, the original data is replaced, the original data is reserved, and the original data of the protected person 8 in the target bill is used as target processing records of the protected person 8;
the insured life 9: before batch, after the batch is replaced, the last processing (namely 7.04 processing record) is taken, and bill data of the insured person 9 in the 7.04 target bill is taken as the target processing record of the insured person 9;
The insured life 10: previously is subtracted, not taken
The insured life 11: is replaced before taking out
The insured life 12: before being modified and after being unmodified, taking the last processing (namely 7.05 processing record) and taking the bill data of the insured person 12 in the 7.05 target bill as the target processing record of the insured person 12;
the insured life 13: the document data of the insured person 13 in the 7.04 target document is taken as the target processing record of the insured person 13, wherein the document data is newly added before and not modified after, and the last processing record (namely 7.04 processing) is taken;
the insured life 14: the person 15 to be protected is replaced after the previous modification, and is not taken;
the insured life 15: the record of the modification (namely, the processing of 7.03) is taken, and the document data of the insured person 15 in the target document of 7.03 is taken as the target processing record of the insured person 15.
S204: and restoring the target data under the corresponding target targets based on each target processing record in the bill information, and storing the corresponding target data of the currently restored target targets according to a preset time interval to obtain target bill information of the target bill under the specified time.
In one embodiment, the target data under each target in the document information is restored by using the data recorded by the corresponding target processing of each target one by one, so as to prevent abnormal conditions (such as abnormal shutdown) in the restoration process, and the restored target information is not saved. In the restoring process, the embodiment of the application can store the information of the part of the target targets which are modified before according to the preset time interval.
In one embodiment, the target data restored below each target may also be stored once as the target data restored below the target is completed.
In the embodiment of the application, the server can acquire the bill information of the target bill under the system time from the storage area corresponding to the target bill based on the bill identifier, and identify at least one target corresponding to the target bill from the bill information. Further, each processing record of each target object closest to the specified time may be acquired from the storage area according to a preset acquisition rule, whether each processing record has a preset processing identifier is detected, and the processing record having the preset processing identifier is determined as the target processing record. Further, the document information can be restored based on each target processing record to the corresponding target data under the target, and the corresponding target data of the target which is restored at present is stored according to a preset time interval, so that the target document information of the target document under the specified time is obtained. By adopting the mode, in the process of restoring the target subscript data, the information of the part of the target which is modified before can be stored according to the preset time interval, thereby being beneficial to preventing the problem of data loss caused by abnormal conditions in the restoring process.
The embodiment of the application also provides a device for processing the bill information. The device comprises a module for executing the method described in the foregoing fig. 1 or fig. 2, and is configured on a server. Specifically, referring to fig. 4, a schematic block diagram of a document information processing apparatus provided in an embodiment of the present application is shown. The document information processing device of the present embodiment includes:
the communication module 40 is configured to receive an acquisition request carrying a document identifier of a target document sent by a client, where the acquisition request is used to request to acquire target document information of the target document in a specified time;
the processing module 41 is configured to obtain, based on the document identifier, document information of the target document under the system time from a storage area corresponding to the target document, and identify at least one target object corresponding to the target document from the document information;
the processing module 41 is further configured to acquire, from the storage area, a processing record corresponding to at least one target identifier included in the target document according to the specified time and a preset acquiring rule, where the processing record corresponding to at least one target identifier included in the target document is stored in the storage area;
The processing module 41 is further configured to restore, in the document information, target data under the respective corresponding target targets based on each target processing record, so as to obtain the target document information of the target document at the specified time.
In one embodiment, the processing module 41 is specifically configured to identify, according to the document identifier, a resource type to which the target document belongs, and determine, from a pre-established correspondence between a preset resource type and a preset target type, a target type corresponding to the resource type; and detecting the type of each target in the bill information, and determining the target with the type of the target as the target corresponding to the target bill.
In one embodiment, the storage structure corresponding to the storage area is an isomorphic table, and the isomorphic table stores at least one processing record corresponding to at least one target identifier included in the target document, and the processing module 41 is specifically configured to obtain at least one first processing record corresponding to the target from the isomorphic table based on the corresponding identifier of the target; and acquiring a corresponding target processing record of the target object from the at least one first processing record based on the designated time and a preset acquisition rule.
In one embodiment, the processing module 41 is specifically configured to detect whether a second processing record closest to the specified time exists in the at least one first processing record; if the second processing record exists and the second processing record is identified to comprise a pruning mark, the second processing record is determined to be a corresponding target processing record of the target object.
In one embodiment, the processing module 41 is further configured to, when detecting that the second processing record is not present, detect whether there is a third processing record of the at least one first processing record that is closest to the target object before the specified time; if the third processing record exists, and the third processing record is identified to comprise an adding identifier or a modifying identifier, the third processing record is determined to be a corresponding target processing record of the target object.
In one embodiment, the processing module 41 is further configured to determine the corresponding raw data of the target object as the corresponding target processing record of the target object if the third processing record is detected to be absent.
In one embodiment, the processing module 41 is further specifically configured to restore, in the document information, the target data under the target targets corresponding to each target processing record, and store the corresponding target data of the target targets that have been restored at present according to a preset time interval.
It should be noted that, the functions of each functional module of the document information processing apparatus described in the embodiments of the present application may be specifically implemented according to the method in the method embodiment described in fig. 1 or fig. 2, and the specific implementation process may refer to the related description of the method embodiment in fig. 1 or fig. 2, which is not repeated herein.
Referring to fig. 5, fig. 5 is a schematic block diagram of a server provided in an embodiment of the present application, and as shown in fig. 5, the server includes a processor 501, a memory 502, and a network interface 503. The processor 501, the memory 502, and the network interface 503 may be connected by a bus or other means, which is illustrated in fig. 5 in the embodiment of the present application. Wherein the network interface 503 is controlled by the processor for sending and receiving messages, the memory 502 is used for storing a computer program, the computer program comprises program instructions, and the processor 501 is used for executing the program instructions stored in the memory 502. Wherein the processor 501 is configured to invoke the program instruction execution: receiving an acquisition request carrying a bill identifier of a target bill sent by a client through a network interface 503, wherein the acquisition request is used for requesting to acquire target bill information of the target bill in a specified time; acquiring bill information of the target bill under the system time from a storage area corresponding to the target bill based on the bill identifier; identifying at least one target object corresponding to the target document from the document information; acquiring respective corresponding target processing records of each target from the storage area according to the appointed time and a preset acquisition rule, wherein the storage area stores at least one processing record corresponding to at least one target identifier included in the target bill; and restoring the target data under the corresponding target targets on the basis of each target processing record in the bill information to obtain the target bill information of the target bill under the appointed time.
In one embodiment, the processor 501 is specifically configured to identify, according to the document identifier, a resource type to which the target document belongs, and determine, from a pre-established correspondence between a preset resource type and a preset target type, a target type corresponding to the resource type; and detecting the type of each target in the bill information, and determining the target with the type of the target as the target corresponding to the target bill.
In one embodiment, the storage structure corresponding to the storage area is an isomorphic table, and the isomorphic table stores at least one processing record corresponding to at least one target identifier included in the target document, and the processor 501 is specifically configured to obtain at least one first processing record corresponding to the target from the isomorphic table based on the corresponding identifier of the target; and acquiring a corresponding target processing record of the target object from the at least one first processing record based on the designated time and a preset acquisition rule.
In one embodiment, the processor 501 is specifically configured to detect whether there is a second processing record that is closest to the at least one first processing record after the specified time; if the second processing record exists and the second processing record is identified to comprise a pruning mark, the second processing record is determined to be a corresponding target processing record of the target object.
In one embodiment, the processor 501 is further configured to, when detecting that the second processing record is not present, detect whether a third processing record closest to the target object before the specified time is present in the at least one first processing record; if the third processing record exists, and the third processing record is identified to comprise an adding identifier or a modifying identifier, the third processing record is determined to be a corresponding target processing record of the target object.
In one embodiment, the processor 501 is further configured to determine, if it is detected that the third processing record does not exist, the corresponding raw data of the target object as the corresponding target processing record of the target object.
In one embodiment, the processor 501 is further specifically configured to restore, in the document information, target data under the target targets corresponding to each target processing record, and store the corresponding target data of the target targets that have been restored at present according to a preset time interval.
It should be appreciated that in embodiments of the present application, the processor 501 may be a central processing unit (Central Processing Unit, CPU), the processor 501 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may include read only memory and random access memory and provide instructions and data to the processor 501. A portion of memory 502 may also include non-volatile random access memory. For example, the memory 502 may also store information of device type.
In a specific implementation, the processor 501, the memory 502 and the network interface 503 described in the embodiments of the present application may perform an implementation described in the embodiment of the method described in fig. 1 or fig. 2 provided in the embodiments of the present application, or may also perform an implementation of the processing apparatus of document information described in the embodiments of the present application, which is not described herein again.
In another embodiment of the present invention, there is provided a computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: receiving an acquisition request carrying a bill identifier of a target bill sent by a client, wherein the acquisition request is used for requesting to acquire target bill information of the target bill in a specified time; acquiring bill information of the target bill under the system time from a storage area corresponding to the target bill based on the bill identifier; identifying at least one target object corresponding to the target document from the document information; acquiring respective corresponding target processing records of each target from the storage area according to the appointed time and a preset acquisition rule, wherein the storage area stores at least one processing record corresponding to at least one target identifier included in the target bill; and restoring the target data under the corresponding target targets on the basis of each target processing record in the bill information to obtain the target bill information of the target bill under the appointed time.
The computer readable storage medium may be an internal storage unit of the server according to any of the foregoing embodiments, for example, a hard disk or a memory of the server. The computer readable storage medium may also be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the server. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the server. The computer-readable storage medium is used to store the computer program and other programs and data required by the server. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present invention, and it is not intended to limit the scope of the present invention, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present invention.

Claims (8)

1. A method for processing bill information, the method comprising:
receiving an acquisition request carrying a bill identifier of a target bill sent by a client, wherein the acquisition request is used for requesting to acquire target bill information of the target bill in a specified time;
acquiring bill information of the target bill in system time from a storage area corresponding to the target bill based on the bill identifier, wherein a storage structure corresponding to the storage area is an isomorphic table, and at least one processing record corresponding to at least one target identifier included in the target bill is stored in the isomorphic table;
identifying at least one target object corresponding to the target document from the document information;
acquiring at least one corresponding first processing record of the target object from the isomorphic table based on the corresponding identification of the target object;
Detecting whether a second processing record closest to the specified time exists in the at least one first processing record;
if the second processing record exists and the second processing record is identified to comprise a pruning mark, determining the second processing record as a corresponding target processing record of the target object;
and restoring the target data under the corresponding target targets on the basis of each target processing record in the bill information to obtain the target bill information of the target bill under the appointed time.
2. The method of claim 1, wherein identifying at least one target object corresponding to the target document from the document information comprises:
identifying the resource type of the target bill according to the bill identifier, and determining the target type corresponding to the resource type from the pre-established corresponding relation between the preset resource type and the preset target type;
and detecting the type of each target in the bill information, and determining the target with the type of the target as the target corresponding to the target bill.
3. The method according to claim 1, wherein the method further comprises:
detecting whether a third processing record closest to the target object before the specified time exists in the at least one first processing record when the second processing record does not exist;
if the third processing record exists, and the third processing record is identified to comprise an adding identifier or a modifying identifier, the third processing record is determined to be a corresponding target processing record of the target object.
4. A method according to claim 3, characterized in that the method further comprises:
and if the third processing record is detected to be absent, determining the corresponding original data of the target object as the corresponding target processing record of the target object.
5. The method according to claim 1, wherein the restoring processing of the target data under the respective corresponding target targets based on the respective target processing records in the document information includes:
and restoring the target data under the corresponding target targets in the bill information based on each target processing record, and storing the corresponding target data of the currently restored target targets according to a preset time interval.
6. A document information processing apparatus, the apparatus comprising:
the communication module is used for receiving an acquisition request carrying a bill identifier of a target bill sent by a client, wherein the acquisition request is used for requesting to acquire target bill information of the target bill in a specified time;
the processing module is used for acquiring bill information of the target bill under the system time from a storage area corresponding to the target bill based on the bill identification, identifying at least one target corresponding to the target bill from the bill information, wherein a storage structure corresponding to the storage area is an isomorphic table, and the isomorphic table stores processing records corresponding to at least one target identification included in the target bill;
the processing module is further configured to obtain at least one first processing record corresponding to the target object from the isomorphic table based on the corresponding identifier of the target object; detecting whether a second processing record closest to the specified time exists in the at least one first processing record; if the second processing record exists and the second processing record is identified to comprise a pruning mark, determining the second processing record as a corresponding target processing record of the target object;
The processing module is further configured to restore, in the document information, target data under the respective corresponding target targets based on each target processing record, so as to obtain the target document information of the target document in the specified time.
7. A server comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1-5.
CN201910669335.5A 2019-07-23 2019-07-23 Document information processing method and related equipment Active CN110489275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910669335.5A CN110489275B (en) 2019-07-23 2019-07-23 Document information processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910669335.5A CN110489275B (en) 2019-07-23 2019-07-23 Document information processing method and related equipment

Publications (2)

Publication Number Publication Date
CN110489275A CN110489275A (en) 2019-11-22
CN110489275B true CN110489275B (en) 2023-06-02

Family

ID=68547991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910669335.5A Active CN110489275B (en) 2019-07-23 2019-07-23 Document information processing method and related equipment

Country Status (1)

Country Link
CN (1) CN110489275B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014582A1 (en) * 2016-07-22 2018-01-25 平安科技(深圳)有限公司 Insurance policy data processing method, device, servicer and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673374B (en) * 2009-09-16 2013-03-27 金蝶软件(中国)有限公司 Bill processing method and device
CN103810529A (en) * 2012-11-15 2014-05-21 金蝶软件(中国)有限公司 Cross-receipt process log generating method and querying method and device
CN105446706B (en) * 2014-07-08 2020-01-10 阿里巴巴集团控股有限公司 Method and device for evaluating form page use effect and providing original data
CN109558419A (en) * 2018-11-22 2019-04-02 泰康保险集团股份有限公司 Data query method, apparatus and storage medium
CN109636629B (en) * 2018-12-07 2021-07-02 泰康保险集团股份有限公司 Policy data processing method, policy data processing device, policy data processing medium and electronic device
CN109816327B (en) * 2018-12-14 2024-05-14 平安国际融资租赁有限公司 Contract data processing method, apparatus, computer device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014582A1 (en) * 2016-07-22 2018-01-25 平安科技(深圳)有限公司 Insurance policy data processing method, device, servicer and storage medium

Also Published As

Publication number Publication date
CN110489275A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN108694657B (en) Client identification apparatus, method and computer-readable storage medium
CN110309125B (en) Data verification method, electronic device and storage medium
CN110489415B (en) Data updating method and related equipment
US20190044727A1 (en) A system and method for document information authenticity verification
CN111008069B (en) Service processing method, device, computer equipment and storage medium
CN111177129B (en) Method, device, equipment and storage medium for constructing label system
CN112184077A (en) Configurable process approval method and device, computer equipment and storage medium
CN111865691B (en) Alarm file distribution method, device, equipment and medium based on artificial intelligence
CN107798592B (en) Method and apparatus for calculating commission
CN109783781B (en) Image recognition-based policy entry method and related device
CN111815420B (en) Matching method, device and equipment based on trusted asset data
US20130024475A1 (en) Repository content analysis and management
CN109840469B (en) Image recognition-based policy entry method and related device
CN108897729B (en) Transaction template sharing method and device, electronic equipment and storage medium
CN109767346B (en) Vehicle service processing method, device, computer equipment and storage medium
CN112102093A (en) Method, device, equipment and medium for identifying subject identity and incidence relation
CN108984754B (en) Client information updating method and device, computer equipment and storage medium
KR20210106013A (en) Preventing transmission of incorrect copies of data records to distributed ledger systems
CN110489434B (en) Information processing method and related equipment
CN110457332B (en) Information processing method and related equipment
US20190294594A1 (en) Identity Data Enhancement
CN110489416B (en) Information storage method based on data processing and related equipment
CN114187449A (en) Vehicle information processing method, device, computer equipment and storage medium
CN110489275B (en) Document information processing method and related equipment
CN106502825B (en) Data processing method and device

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