CN110489416B - Information storage method based on data processing and related equipment - Google Patents

Information storage method based on data processing and related equipment Download PDF

Info

Publication number
CN110489416B
CN110489416B CN201910669617.5A CN201910669617A CN110489416B CN 110489416 B CN110489416 B CN 110489416B CN 201910669617 A CN201910669617 A CN 201910669617A CN 110489416 B CN110489416 B CN 110489416B
Authority
CN
China
Prior art keywords
target
processing
bill
information
storage
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
CN201910669617.5A
Other languages
Chinese (zh)
Other versions
CN110489416A (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 CN201910669617.5A priority Critical patent/CN110489416B/en
Publication of CN110489416A publication Critical patent/CN110489416A/en
Application granted granted Critical
Publication of CN110489416B publication Critical patent/CN110489416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof

Abstract

The embodiment of the invention discloses an information storage method based on data processing and related equipment, wherein the method is applied to the technical field of data processing and comprises the following steps: the server receives processing result information for processing the target bill, and determines a target processing item corresponding to the processing application identifier of the target bill from the corresponding relation between the pre-established processing application identifier and the processing item. Further, the server can detect the target option type to which the target processing item belongs, and determine a target storage mode matched with the target option type based on the corresponding relation between the preset option type and the preset storage mode, so as to store bill processing information according to the target storage mode. In the method, the document processing information under different processing scenes is stored in different storage modes, so that the flexibility of document processing information storage is improved, and the loss of data storage to system performance is reduced.

Description

Information storage method based on data processing and related equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an information storage method and related devices based on data processing.
Background
After the document data is processed (such as updating data, deleting data and adding data), the document management system needs to record the document data change corresponding to the processing process. At present, a full-scale backup mode is generally adopted to record the processing track of bill data. However, in the process of full-scale backup, if the data volume of a certain document change is large, the data volume of the stored document change information is quite huge in order to record the change of the document data, and the performance and the storage space of the system are seriously consumed. Therefore, how to flexibly and efficiently use the storage space to record the change of the bill information becomes a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides an information storage method based on data processing and related equipment, which are beneficial to ensuring the authenticity of acquired license plate numbers and improving the updating efficiency of license plate information.
In a first aspect, an embodiment of the present invention provides an information storage method based on data processing, where the method is applied to a server, and the method includes:
receiving processing result information for processing a target bill, wherein the processing result information comprises a processing application identifier corresponding to the target bill and bill processing information corresponding to the target bill;
Determining a target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item;
detecting a target option type to which the target processing item belongs, and determining a target storage mode matched with the target option type based on a corresponding relation between a preset option type and a preset storage mode, wherein the preset storage mode comprises isomorphic table storage or tree storage;
and storing the bill processing information according to the target storage mode.
In one embodiment, the target storage mode is isomorphic table storage, and the specific implementation mode of storing the document processing information according to the target storage mode is as follows: detecting whether the processing for the target document is first processing; and if the processing aiming at the target bill is detected not to be the first processing, storing the bill processing information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, if the processing for the target document is detected to be the first processing, the document identifier of the target document is obtained from the processing result information; based on the bill identification, searching the historical bill information of the target bill from the prestored historical bill information of each bill; extracting target historical receipt information corresponding to the target processing item from the historical receipt information of the target receipt; and storing the bill processing information and the target historical bill information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, the target storage mode is tree storage, and the specific implementation mode of storing the document processing information according to the target storage mode is as follows: identifying a processing identifier corresponding to the bill processing information; searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, wherein the tree storage structure comprises at least one storage node; and updating the historical node data of the target bill under the target storage node based on the bill processing information.
In one embodiment, after the history node data of the target document under the target storage node is updated based on the document processing information, it may further be detected whether there is a higher-level storage node in the tree-like storage structure for the target storage node; and if the target storage node has an upper storage node, updating the historical node data corresponding to the upper storage node based on the updated node data of the target storage node.
In one embodiment, after the history node data of the target document under the target storage node is updated based on the document processing information, an update record may be further generated in a leaf node corresponding to the target storage node, where the update record includes the history node data before the update under the target storage node and the node data after the update on the history node data.
In a second aspect, an embodiment of the present invention provides a data processing based information storage device, which includes a module for performing the method of the first aspect.
In a third aspect, an embodiment of the present invention provides a server, including a processor, a network interface, and a memory, where the processor, the network interface, and the memory are connected to each other, and 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 method described above, where the computer program includes program instructions, and where the processor is configured to invoke the program instructions to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present invention 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 receives the processing result information for processing the target document, and determines the target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item. Further, the server can detect the target option type to which the target processing item belongs, and determine a target storage mode matched with the target option type based on the corresponding relation between the preset option type and the preset storage mode, so as to store bill processing information according to the target storage mode. In the method, the document processing information under different processing scenes is stored in different storage modes, so that the flexibility of document processing information storage is improved, and the loss of data storage to system performance is reduced.
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 an information storage method based on data processing according to an embodiment of the present invention;
FIG. 2 is a flow chart of another information storage method based on data processing according to an embodiment of the present invention;
FIG. 3 is a flow chart of another information storage method based on data processing according to an embodiment of the present invention;
FIG. 4a is a schematic diagram of a tree-like storage structure before processing a target document according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of a tree-like storage structure after processing a target document according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of a storage structure of a post-processing change record of a target document according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of an information storage device based on data processing according to an embodiment of the present invention;
Fig. 6 is a schematic block diagram of a server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. 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 information storage method based on data processing can be applied to a server corresponding to a service platform, and the service platform is used for providing relevant services for bill 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). 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.
It can be seen that the amount of information recorded, whether it is insurance standard or contract standard, is very large, and can reach thousands of thousands. If the full-scale backup mode is adopted to store the update of the information of the class mark, the performance is very consumed.
In order to solve the above problems, the present application proposes an information storage method based on data processing, which can receive processing result information for processing a target document, and determine a target processing item corresponding to a processing application identifier of the target document from a pre-established correspondence between the processing application identifier and the processing item. Further, the server can detect the target option type to which the target processing item belongs, and determine a target storage mode matched with the target option type based on the corresponding relation between the preset option type and the preset storage mode, so as to store bill processing information according to the target storage mode. In the method, the document processing information under different processing scenes is stored in different storage modes, so that the flexibility of document processing information storage is improved, and the loss of data storage to system performance is reduced.
Referring to fig. 1, fig. 1 is a flowchart of a data processing-based information storage method according to an embodiment of the present invention, where the method is applied to a server and may be executed by the server, and as shown in the drawing, the data processing-based information storage method may include:
101: and receiving processing result information for processing the target bill, wherein the processing result information comprises a processing application identifier corresponding to the processing target bill and bill processing information corresponding to the processing target bill. The bill processing information is the bill information processed at the present time. Illustratively, when the target document is modified, for example, during the secondary processing, the document processing information is modified document information.
In one embodiment, the server applied in the method can be a server corresponding to the bill management system, and a user can process any bill through the bill management system, so that the bill management is realized. Specifically, when the user wants to process the target document, the terminal corresponding to the document management system may display at least one processing item corresponding to the target document to the user, and the user may select the target processing item from the at least one processing item and process the document information of the target document under the target processing item. When the terminal detects that the user selects the target processing item, a processing application identifier corresponding to the target processing item can be generated. Further, after the terminal detects that the processing of the target bill by the user is completed, processing result information of the target bill can be generated, a processing application identifier generated before is added to the processing result information, and then the processing result information carrying the processing application identifier is sent to a server corresponding to the bill management system. Wherein the processing application identifies a processing item (i.e., a target processing item) indicating that a data change occurred for the current processing.
In one embodiment, different document types, which may be categorized according to service type, may also have different corresponding processable options (i.e., processing items). Illustratively, taking the insurance field as an example, when the target document is a policy, the types of the policy (i.e., document types) may be classified according to the kinds of risk. In particular, for example, in the case of a policy for property insurance, the processing item corresponding to that type of policy may be an option related to the applicant's property; for personal insurance policies, the processing item corresponding to the type of policy may be an option related to the life of the insuring object; in the case of insurance policies for liability insurance, the processing items corresponding to the type of insurance policy are related to civil damage liability of the insured person.
For this case, in one embodiment, the server may pre-establish a correspondence between the document type and the processing item, and when the user wants to process the target document, the processing application for the target document may be sent to the server through the document management system, and when the server receives the processing application for the target document by the user, the server may detect the target document type to which the target document belongs, and further determine at least one processing item corresponding to the target document type based on the pre-established correspondence between the document type and the processing item. Further, the server may send, to a terminal (i.e., a terminal corresponding to the document management system) that establishes communication connection in advance, indication information, where the indication information is used to instruct the terminal to display, on a display interface, at least one processing item corresponding to the target document type, so that a user may select the target processing item from the at least one processing item, and process document information corresponding to the target processing item. By adopting the mode, the terminal can be instructed to only display the processing items matched with the target document type without displaying all the preset processing items, so that the efficiency of selecting the target processing items by a user is improved, and the user experience is enhanced.
102: and determining a target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item.
In one embodiment, the process application identifier may refer to a process application number. The correspondence between the processing application number and the processing item may refer to a correspondence between a processing application number and a processing item. For example, when the target document is a policy, the correspondence between the processing application number and the processing item may be as shown in table 1-1. Assuming that the processing application identifier of the target document is XXXX2, the server can determine that the target processing item corresponding to the current processing target document is a deposit modification according to the corresponding relationship shown in the table 1-1.
TABLE 1-1
Processing application identification Processing item
XXXX1 Modified by insured life
XXXX2 Modification of a guard
103: detecting a target option type to which a target processing item belongs, and determining a target storage mode matched with the target option type based on a corresponding relation between a preset option type and a preset storage mode. The preset storage mode comprises isomorphic table storage or tree-shaped storage.
104: and storing the bill processing information according to the target storage mode.
In one embodiment, each processing item may be classified in advance, to determine an option type to which each processing item belongs. Wherein one option type may include one or more processing items. In one embodiment, the preset option types may include a list class option and a non-list class option. The server may determine an option type of a processing item for the subject information processing as a list class option and an option type of a processing item other than the processing item for the subject information processing as a non-list class option. Illustratively, for a policy, the target information may refer to applicant information, beneficiary information, and so forth; non-standard information may refer to a guard modification, a claim amount modification, and so forth.
Further, after the server determines the option type of each processing item, a corresponding relation between the preset processing item and the preset option type can be established, and the corresponding relation between the preset processing item and the preset option type is stored in the storage area. After the server executes step 102 to determine the target processing item of the target document, the target option item corresponding to the target processing item may be determined based on the pre-stored correspondence between the processing item and the option type. Further, the server can determine a target storage mode matched with the target option type based on the corresponding relation between the preset option type and the preset storage mode, and further store bill processing information according to the target storage mode.
For example, when the preset option type includes a list type option and a non-list type option, the correspondence between the preset option type and the preset storage mode may be as shown in tables 1-2.
TABLE 1-2
Presetting option types Preset storage mode
List class options Isomorphic table storage
Non-manifest class options Tree-like storage
It can be seen that the data volume corresponding to the target information is very large, and the processing content mainly corresponding to the list processing item is the target information of the bill. When the target information of the bill is updated, if the update is to be stored, if a full-quantity backup storage mode is adopted, the storage burden of the system is greatly increased, and the system performance is consumed. Therefore, the method and the device for updating the corresponding content of the list processing items store the corresponding content by adopting the isomorphic table storage mode, and can realize incremental backup of bill processing information, thereby being beneficial to improving the storage efficiency and reducing the consumption of system performance.
The processing content mainly corresponding to the non-list processing items is non-standard information of the bill, and the data volume corresponding to the non-standard information is relatively small. When the bill information corresponding to the non-list processing items is updated, the updated bill information (namely the bill processing information) is stored by adopting a tree-shaped storage structure, so that the change content corresponds to each storage node layer by layer, and the change of the bill data can be intuitively reflected.
In the embodiment of the application, the server receives the processing result information for processing the target document, and determines the target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item. Further, the server can detect the target option type to which the target processing item belongs, and determine a target storage mode matched with the target option type based on the corresponding relation between the preset option type and the preset storage mode, so as to store bill processing information according to the target storage mode. In the method, the document processing information under different processing scenes is stored in different storage modes, so that the flexibility of document processing information storage is improved, and the loss of data storage to system performance is reduced.
Referring to fig. 2, fig. 2 is a flowchart of another data processing-based information storage method according to an embodiment of the present invention, where the method may be performed by a server, and as shown in the drawing, the data processing-based information storage method may include:
201: and receiving processing result information for processing the target bill, wherein the processing result information comprises a processing application identifier corresponding to the processing target bill and bill processing information corresponding to the processing target bill. In one embodiment, the processing result information further includes a document identifier of the target document, where the document identifier may refer to a document number of the target document.
202: and determining a target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item. The specific implementation manners of the steps 201 to 202 may be referred to the descriptions of the steps 101 to 102 in the above embodiments, and are not repeated here.
203: detecting a target option type to which a target processing item belongs, and if the target option type is a list option, determining that a target storage mode matched with the target option type is isomorphic table storage based on a corresponding relation between a preset option type and a preset storage mode.
204: detecting whether the processing of the target bill is the first processing, and storing bill processing information in an isomorphic table storage structure corresponding to the target bill when detecting that the processing of the target bill is not the first processing.
In one embodiment, the preset option types include a list class option and a non-list class option. And indicating in the corresponding relation between the preset option type and the preset storage mode, wherein the preset storage mode corresponding to the list type option is isomorphic table storage. For this case, when the server detects that the target option type to which the target processing item belongs is a list option, it may determine, according to the pre-established correspondence between the preset option type and the preset storage mode, that the target storage mode matching the target option type is stored as an isomorphic table.
Further, whether a processing record of the target bill exists or not can be queried based on the bill identification of the target bill, if not, the target bill can be determined to be processed for the first time, and if so, the target bill can be determined not to be processed for the first time.
In one embodiment, when it is detected that the processing for the target document is not the first processing, the document processing information may be backed up in an incremental manner in an isomorphic table storage structure corresponding to the target document. The incremental backup refers to the backup of the information of the existence change related to the current process.
For example, the target bill is a policy, the current process involves changing the target corresponding to the target bill, the target bill has 1000 targets under the scheme, and the server detects that the target 1 and the target 2 are changed after the current process is completed through identifying the bill processing information (i.e. bill processing information), so that the target 1 and the target 2 can be backed up in a pre-established isomorphic table storage structure.
As another possible implementation manner, if the server detects that the processing for the target document is the first processing, the document identifier of the target document is obtained from the processing result information, and the history document information of the target document is searched from the previously stored history document information of each document based on the document identifier. Further, the server may extract target history document information corresponding to the target processing item from the history document information of the target document, and store the document processing information and the target history document information in an isomorphic table storage structure corresponding to the target document.
For example, assuming that the target documents are documents P and there are 20000 target documents, 30 of the target documents (i.e., 30 target processing items) are processed for the first time, for this case, the server may store the document processing information and the target history document information in an isomorphic table storage structure corresponding to the target documents, that is, record 60 records in the isomorphic table, where the 60 records include document processing information corresponding to the updated 30 target processing items and target history document information corresponding to the 30 target processing items before updating.
It can be seen that the data volume corresponding to the target information is very large, and the processing content mainly corresponding to the list processing item is the target information of the bill. When the target information of the bill is updated, if the update is to be stored, if a full-quantity backup storage mode is adopted, the storage burden of the system is greatly increased, and the system performance is consumed. Therefore, the method and the device for updating the corresponding content of the list processing items store the corresponding content by adopting the isomorphic table storage mode, and can realize incremental backup of bill processing information, thereby being beneficial to improving the storage efficiency and reducing the consumption of system performance.
In one embodiment, after the server stores the document processing information in the isomorphic table storage structure corresponding to the target document, the current processing application identifier and the document processing information related to the current processing may be stored in a designated storage area in an associated manner. By adopting the mode, the follow-up server can conveniently find the bill processing information related to the current processing based on the processing application identifier.
In the embodiment of the application, the server may receive the processing result information for processing the target document, and determine, from the corresponding relationship between the processing application identifier and the processing item, the target processing item corresponding to the processing application identifier of the target document. Further, the server may detect a target option type to which the target processing item belongs, and if the target option type is a list option, determine, based on a correspondence between a preset option type and a preset storage mode, that a target storage mode matched with the target option type is isomorphic table storage. Further, the server may detect whether the processing for the target document is first processing, and store the document processing information in the isomorphic table storage structure corresponding to the target document when detecting that the processing for the target document is not first processing. According to the method and the device, when the option type of the target processing item is detected to be the list option, the isomorphic table storage structure is adopted to carry out incremental backup on the processing document information of the target document, and full backup on all document information of the target document is not needed, so that storage efficiency is improved, and consumption of system performance is reduced.
Referring to fig. 3, fig. 3 is a flowchart of yet another information storage method based on data processing according to an embodiment of the present invention, where the method is applied to a server and may be executed by the server, and as shown in the drawing, the information storage method based on data processing may include:
301: and receiving processing result information for processing the target bill, wherein the processing result information comprises a processing application identifier corresponding to the processing target bill and bill processing information corresponding to the processing target bill.
302: and determining a target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item. For the specific implementation of steps 301 to 302, reference may be made to the descriptions related to steps 101 to 102 in the above embodiments, which are not repeated here.
303: detecting a target option type of the target processing item, if the target option type is a non-list option, determining that a target storage mode matched with the target option type is tree-shaped storage based on a corresponding relation between a preset option type and a preset storage mode.
In one embodiment, the preset option types include a list class option and a non-list class option. And indicating in the corresponding relation between the preset option type and the preset storage mode, wherein the preset storage mode corresponding to the non-list option is tree-shaped storage. For this case, when the server detects that the target option type to which the target processing item belongs is a non-list option, it may determine that the target storage mode matching the target option type is tree-like storage according to the pre-established correspondence between the preset option type and the preset storage mode.
304: identifying a processing identifier corresponding to the bill processing information, searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, and updating historical node data of the target bill under the target storage node based on the bill processing information. Wherein the tree-like storage structure comprises at least one storage node.
For example, when the target processing item is the applicant processing, the user may refer to processing of "name", "age", "academic" of the applicant in the process of processing the applicant, that is, the document processing information corresponding to the current processing includes processing sub-information corresponding to "name", "age", "academic" of the applicant, where the "name", "age", "academic" of the applicant may be the processing identifier corresponding to the document processing information.
In one embodiment, after updating the historical node data of the target document under the target storage node based on the document processing information, the server may further detect whether the target storage node has an upper storage node in the tree storage structure, and if the target storage node has an upper storage node, update the historical node data corresponding to the upper storage node based on the updated node data under the target storage node. By adopting the storage mode, the change content of the target bill corresponds to the storage nodes of the tree-shaped storage structure layer by layer, and the change of the target bill data can be intuitively reflected.
For example, referring to fig. 4a and 4b, assuming that the target document of the present process is a policy P, the contents of the process are: the liability a guard is increased to 2000. In this case, the server may identify the processing identifier "responsibility a" corresponding to the document processing information from the document processing information, find the target storage node corresponding to "responsibility a" in the tree storage structure based on the processing identifier "responsibility a", and update the guard to 2000 under the target storage node.
Further, when the server detects that the target storage node is stored in the upper node "clause 1" and "scheme 1", the corresponding policy corresponding to "clause 1" may be updated to "2000" and the corresponding policy corresponding to "scheme 1" may be updated to "3000" step by step based on the updated node data "2000" of the target storage node. By adopting the storage mode, which level is updated in the current processing can be visually checked, and the change of the target document data can be visually reflected.
In one embodiment, after updating the history node data of the target document under the target storage node based on the document processing information, the server may further generate an update record in the leaf node corresponding to the target storage node, where the update record includes the history node data before the update under the target storage node and the node data after the update to the history node data.
Illustratively, taking the processing of the policy P corresponding to fig. 4a and 4b as an example, the change record processed for the policy P at this time may be as shown in fig. 4 c. It can be seen that the attribute change item of this process is "amount", the target storage node, and all the upper storage nodes of the target storage node correspond to one leaf node respectively, and each leaf node correspondingly generates an update record.
In one embodiment, before the server generates the update record in the leaf node corresponding to the target storage node, the server may further detect whether the processing for the target document is first processing, if so, obtain the document identifier of the target document from the processing result information, and search the historical document information of the target document from the pre-stored historical document information of each document based on the document identifier. Further, the server may extract target history document information corresponding to the target processing item from the history document information of the target document, and generate an update record based on the target history document information in a leaf node corresponding to the target storage node. If the first processing is not performed, the step of acquiring the target document history document information is not needed because the history data is recorded in the history update record corresponding to the leaf node.
It will be appreciated that for a visual storage structure (such as the tree-like storage structure described above), this storage approach is tested in: if the target bill is processed for a certain time, a plurality of targets in a certain scheme of the target bill are subjected to information change, such as 1000 targets, 1000 sub-nodes are used for recording the information change in the visual storage structure; when the 1000 target pre-processing information is restored by using the latest policy and change records, for the change information of each node, searching and finding the corresponding target object in the 1000 targets, and then restoring, wherein the steps are repeated for 1000 times; therefore, the calculation amount of the algorithm is 1000 x (1000+0)/2, and the calculation can seriously slow down the running speed of the system. Therefore, isomorphic table storage is adopted for the list information, and other non-list information is in a visual storage mode because the data volume is small under the same target bill, so that the change content of the target bill corresponds to the storage nodes of the tree-shaped storage structure layer by layer, and the change of the target bill data can be intuitively reflected. And for correction information of different scenes, different storage modes are adopted, so that the flexibility of storage can be improved.
In the embodiment of the application, the server receives the processing result information for processing the target document, and determines the target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item. Further, the server may detect a target option type to which the target processing item belongs, and if the target option type is a non-manifest option, determine, based on a correspondence between a preset option type and a preset storage mode, that a target storage mode matching the target option type is tree-shaped storage. Further, the server can identify a processing identifier corresponding to the bill processing information, search a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, and update historical node data of the target bill under the target storage node based on the bill processing information. According to the method and the device for processing the target bill, when the option type of the target processing item is detected to be a non-list option, the tree-shaped storage structure is adopted to store the bill processing information of the target bill, so that the changing content of the target bill corresponds to the storage nodes of the tree-shaped storage structure layer by layer, and the change of the target bill data can be intuitively reflected.
The embodiment of the invention also provides an information storage device based on data processing. The apparatus includes means for performing the methods described in the foregoing fig. 1, 2 or 3, and is configured on a server. In particular, referring to fig. 5, a schematic block diagram of an information storage device based on data processing according to an embodiment of the present invention is provided. The information storage device based on data processing of the present embodiment includes:
the communication module 50 is configured to receive processing result information for processing a target document, where the processing result information includes a processing application identifier corresponding to the processing target document and document processing information corresponding to the processing target document;
the processing module 51 is configured to determine, from a pre-established correspondence between a processing application identifier and a processing item, a target processing item corresponding to the processing application identifier of the target document, detect a target option type to which the target processing item belongs, and determine, based on a correspondence between a preset option type and a preset storage manner, a target storage manner matched with the target option type, where the preset storage manner includes isomorphic table storage or tree storage;
the processing module 51 is further configured to store the document processing information according to the target storage manner.
In one embodiment, the target storage manner is isomorphic table storage, and the processing module 51 is specifically configured to: detecting whether the processing for the target document is first processing; and if the processing aiming at the target bill is detected not to be the first processing, storing the bill processing information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, the processing module 51 is further configured to obtain a document identifier of the target document from the processing result information if it is detected that the processing for the target document is first processing; based on the bill identification, searching the historical bill information of the target bill from the prestored historical bill information of each bill; extracting target historical receipt information corresponding to the target processing item from the historical receipt information of the target receipt; and storing the bill processing information and the target historical bill information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, the target storage manner is tree storage, and the processing module 51 is specifically configured to: identifying a processing identifier corresponding to the bill processing information; searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, wherein the tree storage structure comprises at least one storage node; and updating the historical node data of the target bill under the target storage node based on the bill processing information.
In one embodiment, the processing module 51 is further configured to: detecting whether a superordinate storage node exists in the target storage node in the tree storage structure; and if the target storage node has an upper storage node, updating the historical node data corresponding to the upper storage node based on the updated node data of the target storage node.
In one embodiment, the processing module 51 is further configured to: and generating an update record in the leaf node corresponding to the target storage node, wherein the update record comprises historical node data before updating under the target storage node and node data after updating the historical node data.
In one embodiment, the processing module 51 is further configured to detect, when receiving a processing application for a target document from a user through the communication module 50, a target document type to which the target document belongs; determining at least one processing item corresponding to the target bill type based on a pre-established corresponding relation between the bill type and the processing item; and sending indication information to a terminal which establishes communication connection in advance through a communication module 50, wherein the indication information is used for indicating the terminal to display at least one processing item corresponding to the target document type on a display interface so as to facilitate a user to select a target processing item from the at least one processing item and process document information corresponding to the target processing item.
It should be noted that, the functions of each functional module of the data processing-based information storage device described in the embodiments of the present invention may be implemented according to the method in the method embodiment described in fig. 1, fig. 2 or fig. 3, and the specific implementation process may refer to the relevant description of the method embodiment in fig. 1, fig. 2 or fig. 3, which is not repeated herein.
Referring to fig. 6, fig. 6 is a schematic block diagram of a server according to an embodiment of the present invention, and as shown in fig. 6, the server includes a processor 601, a memory 602, and a network interface 603. The processor 601, memory 602, and network interface 603 may be connected via a bus or otherwise, as illustrated in fig. 6 in the embodiment of the present invention. The network interface 603 is controlled by the processor to send and receive messages, the memory 602 is used for storing a computer program, the computer program comprises program instructions, and the processor 601 is used for executing the program instructions stored in the memory 602. Wherein the processor 601 is configured to invoke the program instructions to execute: receiving processing result information for processing a target bill through a network interface 603, wherein the processing result information comprises a processing application identifier corresponding to the target bill and bill processing information corresponding to the target bill; determining a target processing item corresponding to the processing application identifier of the target bill from the corresponding relation between the pre-established processing application identifier and the processing item, detecting a target option type to which the target processing item belongs, determining a target storage mode matched with the target option type based on the corresponding relation between the preset option type and a preset storage mode, and further storing the bill processing information according to the target storage mode.
In one embodiment, the target storage mode is isomorphic table storage, and the processor 601 is specifically configured to: detecting whether the processing for the target document is first processing; and if the processing aiming at the target bill is detected not to be the first processing, storing the bill processing information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, the processor 601 is further configured to obtain a document identifier of the target document from the processing result information if it is detected that the processing for the target document is first processing; based on the bill identification, searching the historical bill information of the target bill from the prestored historical bill information of each bill; extracting target historical receipt information corresponding to the target processing item from the historical receipt information of the target receipt; and storing the bill processing information and the target historical bill information in an isomorphic table storage structure corresponding to the target bill.
In one embodiment, the target storage manner is tree storage, and the processor 601 is specifically configured to: identifying a processing identifier corresponding to the bill processing information; searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, wherein the tree storage structure comprises at least one storage node; and updating the historical node data of the target bill under the target storage node based on the bill processing information.
In one embodiment, the processor 601 is further configured to: detecting whether a superordinate storage node exists in the target storage node in the tree storage structure; and if the target storage node has an upper storage node, updating the historical node data corresponding to the upper storage node based on the updated node data of the target storage node.
In one embodiment, the processor 601 is further configured to: and generating an update record in the leaf node corresponding to the target storage node, wherein the update record comprises historical node data before updating under the target storage node and node data after updating the historical node data.
In one embodiment, the processor 601 is further configured to detect, when receiving, through the network interface 603, a processing application for a target document by a user, a target document type to which the target document belongs; determining at least one processing item corresponding to the target bill type based on a pre-established corresponding relation between the bill type and the processing item; and sending indication information to a terminal which establishes communication connection in advance through a network interface 603, wherein the indication information is used for indicating the terminal to display at least one processing item corresponding to the target document type on a display interface so as to facilitate a user to select a target processing item from the at least one processing item and process document information corresponding to the target processing item.
It should be appreciated that in embodiments of the present invention, the processor 601 may be a central processing unit (Central Processing Unit, CPU), the processor 601 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) 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 602 may include read only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 602 may also include non-volatile random access memory. For example, the memory 602 may also store information of device type.
In a specific implementation, the processor 601, the memory 602, and the network interface 603 described in the embodiments of the present invention may perform the implementation described in the method embodiments of fig. 1, fig. 2, or fig. 3 provided in the embodiments of the present invention, or may also perform the implementation of the information storage device based on data processing described in the embodiments of the present invention, 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: when processing result information for processing a target bill is received, determining a target processing item corresponding to a processing application identifier of the target bill from a pre-established corresponding relation between the processing application identifier and the processing item; detecting a target option type to which the target processing item belongs, and determining a target storage mode matched with the target option type based on a corresponding relation between a preset option type and a preset storage mode, wherein the preset storage mode comprises isomorphic table storage or tree storage; and storing the bill processing information according to the target storage mode.
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 (7)

1. An information storage method based on data processing, the method comprising:
receiving processing result information for processing a target bill, wherein the processing result information comprises a processing application identifier corresponding to the target bill and bill processing information corresponding to the target bill;
Determining a target processing item corresponding to the processing application identifier of the target document from the corresponding relation between the pre-established processing application identifier and the processing item;
detecting a target option type to which the target processing item belongs, and determining a target storage mode matched with the target option type based on a corresponding relation between a preset option type and a preset storage mode, wherein the preset storage mode comprises isomorphic table storage or tree storage;
storing the bill processing information according to the target storage mode;
if the target processing item is a list option, the target storage mode is isomorphic table storage, and the document processing information is stored according to the target storage mode, including:
detecting whether the processing for the target document is first processing;
if the processing aiming at the target bill is detected not to be the first processing, storing the bill processing information in an isomorphic table storage structure corresponding to the target bill;
if the processing aiming at the target bill is detected to be the first processing, acquiring the bill identification of the target bill from the processing result information; based on the bill identification, searching the historical bill information of the target bill from the prestored historical bill information of each bill; extracting target historical receipt information corresponding to the target processing item from the historical receipt information of the target receipt; storing the bill processing information and the target historical bill information in an isomorphic table storage structure corresponding to the target bill;
If the target processing item is a non-list option, the target storage mode is tree storage, and the document processing information is stored according to the target storage mode, including:
identifying a processing identifier corresponding to the bill processing information;
searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, wherein the tree storage structure comprises at least one storage node;
and updating the historical node data of the target bill under the target storage node based on the bill processing information.
2. The method of claim 1, wherein after updating the historical node data of the target document under the target storage node based on the document processing information, the method further comprises:
detecting whether a superordinate storage node exists in the target storage node in the tree storage structure;
and if the target storage node has an upper storage node, updating the historical node data corresponding to the upper storage node based on the updated node data of the target storage node.
3. The method of claim 1, wherein after updating the historical node data of the target document under the target storage node based on the document processing information, the method further comprises:
And generating an update record in the leaf node corresponding to the target storage node, wherein the update record comprises historical node data before updating under the target storage node and node data after updating the historical node data.
4. A method according to any one of claims 1-3, wherein the method further comprises:
when receiving a processing application of a user for a target bill, detecting a target bill type to which the target bill belongs;
determining at least one processing item corresponding to the target bill type based on a pre-established corresponding relation between the bill type and the processing item;
and sending indication information to a terminal which is in communication connection in advance, wherein the indication information is used for indicating the terminal to display at least one processing item corresponding to the target bill type on a display interface so that a user can conveniently select the target processing item from the at least one processing item and process bill information corresponding to the target processing item.
5. An information storage device, the device comprising:
the communication module is used for receiving processing result information for processing a target bill, wherein the processing result information comprises a processing application identifier corresponding to the target bill and bill processing information corresponding to the target bill;
The processing module is used for determining a target processing item corresponding to the processing application identifier of the target bill from the corresponding relation between the pre-established processing application identifier and the processing item;
the processing module is further used for detecting a target option type to which the target processing item belongs, and determining a target storage mode matched with the target option type based on a corresponding relation between a preset option type and a preset storage mode, wherein the preset storage mode comprises isomorphic table storage or tree storage;
the processing module is also used for storing the bill processing information according to the target storage mode;
if the target processing item is a list option, the target storage mode is isomorphic table storage, and the processing module stores the bill processing information according to the target storage mode, specifically for:
detecting whether the processing for the target document is first processing;
if the processing aiming at the target bill is detected not to be the first processing, storing the bill processing information in an isomorphic table storage structure corresponding to the target bill;
if the processing aiming at the target bill is detected to be the first processing, acquiring the bill identification of the target bill from the processing result information; based on the bill identification, searching the historical bill information of the target bill from the prestored historical bill information of each bill; extracting target historical receipt information corresponding to the target processing item from the historical receipt information of the target receipt; storing the bill processing information and the target historical bill information in an isomorphic table storage structure corresponding to the target bill;
If the target processing item is a non-list option, the target storage mode is tree storage, and the processing module stores the bill processing information according to the target storage mode, wherein the processing module is specifically configured to:
identifying a processing identifier corresponding to the bill processing information;
searching a target storage node matched with the processing identifier in a tree storage structure corresponding to the target bill, wherein the tree storage structure comprises at least one storage node;
and updating the historical node data of the target bill under the target storage node based on the bill processing information.
6. 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-4.
7. 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 of claims 1-4.
CN201910669617.5A 2019-07-23 2019-07-23 Information storage method based on data processing and related equipment Active CN110489416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910669617.5A CN110489416B (en) 2019-07-23 2019-07-23 Information storage method based on data processing and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910669617.5A CN110489416B (en) 2019-07-23 2019-07-23 Information storage method based on data processing and related equipment

Publications (2)

Publication Number Publication Date
CN110489416A CN110489416A (en) 2019-11-22
CN110489416B true CN110489416B (en) 2024-02-09

Family

ID=68547997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910669617.5A Active CN110489416B (en) 2019-07-23 2019-07-23 Information storage method based on data processing and related equipment

Country Status (1)

Country Link
CN (1) CN110489416B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489415B (en) * 2019-07-23 2023-11-03 平安科技(深圳)有限公司 Data updating method and related equipment
CN113139033A (en) * 2021-05-13 2021-07-20 平安国际智慧城市科技股份有限公司 Text processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375356A1 (en) * 2010-04-09 2011-10-12 Sap Ag Comparing documents having structured data
CN104951464A (en) * 2014-03-27 2015-09-30 华为技术有限公司 Data storage method and system
CN106970936A (en) * 2017-02-09 2017-07-21 阿里巴巴集团控股有限公司 Data processing method and device, data query method and device
CN107844308A (en) * 2017-10-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of information processing method, device and equipment
WO2018183797A1 (en) * 2017-03-31 2018-10-04 Amazon Technologies, Inc. Executing queries for structured data and not-structured data
CN108920272A (en) * 2018-06-08 2018-11-30 中国平安人寿保险股份有限公司 A kind of data processing method, device, computer equipment and storage medium
CN109614371A (en) * 2018-10-23 2019-04-12 平安科技(深圳)有限公司 Store method, apparatus, computer equipment and the storage medium of information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375356A1 (en) * 2010-04-09 2011-10-12 Sap Ag Comparing documents having structured data
CN104951464A (en) * 2014-03-27 2015-09-30 华为技术有限公司 Data storage method and system
CN106970936A (en) * 2017-02-09 2017-07-21 阿里巴巴集团控股有限公司 Data processing method and device, data query method and device
WO2018183797A1 (en) * 2017-03-31 2018-10-04 Amazon Technologies, Inc. Executing queries for structured data and not-structured data
CN107844308A (en) * 2017-10-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of information processing method, device and equipment
CN108920272A (en) * 2018-06-08 2018-11-30 中国平安人寿保险股份有限公司 A kind of data processing method, device, computer equipment and storage medium
CN109614371A (en) * 2018-10-23 2019-04-12 平安科技(深圳)有限公司 Store method, apparatus, computer equipment and the storage medium of information

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109617646B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN110489415B (en) Data updating method and related equipment
CN110222265B (en) Information pushing method, system, user terminal and server
CN104731816A (en) Method and device for processing abnormal business data
CN112468523B (en) Abnormal flow detection method, device, equipment and storage medium
CN113220540B (en) Service management method, device, computer equipment and storage medium
CN110909384B (en) Method and device for determining business party revealing user information
CN110489416B (en) Information storage method based on data processing and related equipment
CN109446276B (en) Order interception method, device, equipment and medium based on relational data model
US20130332374A1 (en) Fraud prevention for real estate transactions
CN109871408B (en) Multi-type database adaptation method, device, electronic equipment and storage medium
CN108984754B (en) Client information updating method and device, computer equipment and storage medium
CA3142579A1 (en) Method and apparatus for validation of event tracking acquired data
CN110135190B (en) Data management method, server and computer storage medium
CN109710626B (en) Data warehousing management method and device, electronic equipment and storage medium
CN112633619A (en) Risk assessment method and device
CN110457332B (en) Information processing method and related equipment
CN113590180B (en) Detection strategy generation method and device
CN114708600A (en) Document auditing method and device, computer equipment and storage medium
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN111461727B (en) Transaction behavior monitoring and early warning method and device, storage medium and intelligent equipment
CN114840519A (en) Data labeling method, equipment and storage medium
CN109885710B (en) User image depicting method based on differential evolution algorithm and server
CN111127043A (en) Credit scoring method, credit scoring device, computer equipment and storage medium
CN110489275B (en) Document information processing method and related equipment

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