CN110457332B - Information processing method and related equipment - Google Patents

Information processing method and related equipment Download PDF

Info

Publication number
CN110457332B
CN110457332B CN201910669796.2A CN201910669796A CN110457332B CN 110457332 B CN110457332 B CN 110457332B CN 201910669796 A CN201910669796 A CN 201910669796A CN 110457332 B CN110457332 B CN 110457332B
Authority
CN
China
Prior art keywords
change
target
node
time
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
CN201910669796.2A
Other languages
Chinese (zh)
Other versions
CN110457332A (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 CN201910669796.2A priority Critical patent/CN110457332B/en
Publication of CN110457332A publication Critical patent/CN110457332A/en
Application granted granted Critical
Publication of CN110457332B publication Critical patent/CN110457332B/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/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses an information processing method and related equipment, wherein the method is applied to the technical field of data processing and comprises the following steps: acquiring historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identification of the target receipt, wherein each historical change record comprises change time; and determining the latest change time before the specified time from at least one change time as target change time, determining a target historical change record corresponding to the target change time, updating the historical bill information according to the bill data after the change corresponding to the target change time, obtaining target bill information of the target bill under the specified time, and returning the target bill information to the client. By adopting the embodiment of the application, the bill information of the target bill under the system time can be automatically restored to the bill information under the appointed time, thereby being beneficial to improving the restoration efficiency of the bill data.

Description

Information processing method and related equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to an information processing method and related devices.
Background
Currently, a user can implement data update of any document through the document management platform, and the data update can comprise deletion, addition and modification of document data. In a period of time, a user can update any bill for a plurality of times according to own requirements, and each update uses the current bill data to update the last historical bill data, and the bill management platform only keeps the recently updated bill data.
When a user wants to acquire the historical bill data at a certain time point, a developer is required to manually modify and restore the bill data which is updated recently, and the restoring mode is low in processing efficiency and easy to cause secondary errors of manual modification.
Disclosure of Invention
The embodiment of the invention provides an information processing method and related equipment, which can realize the restoration of bill data in pointing time and improve the restoration efficiency of the bill data.
In a first aspect, an embodiment of the present invention provides an information processing method, 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 historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identification, and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises a change time of change;
determining the latest change time before the specified time from at least one change time as a target change time, and determining a target history change record corresponding to the target change time from at least one history change record, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time;
updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill in the appointed time;
and returning the target bill information to the client.
In one embodiment, the storage structure corresponding to the storage area is a tree-like storage structure, the tree-like storage structure includes at least one storage node, and before the at least one history change record corresponding to the target document is obtained from the storage area based on the document identifier, the method further includes:
Receiving change result information for changing a target bill, wherein the change result information comprises at least one piece of change sub-information, and each piece of change sub-information corresponds to one change mark;
determining at least one change node from the at least one storage node based on the comparison result of each change identifier and the node identifier of each storage node in the at least one storage node, wherein the node identifier of each change node is matched with any change identifier;
generating a change sub-record in leaf nodes of each change node based on the change sub-information corresponding to each change node, and recording change time, wherein the change sub-record comprises historical node data before the change node is changed and node data after the change of the historical node data;
and generating a change record comprising each change sub-record and the change time.
In an embodiment, the document data after modification corresponding to the target modification time includes node data after modification of each modification node in the target modification time, and the specific implementation manner of updating the historical document information according to the document data after modification corresponding to the target modification time is as follows: searching target nodes matched with each changed node in the tree-shaped storage structure; and updating the historical node data under the corresponding target nodes based on the node data after the change of each change node under the target change time.
In one embodiment, the history change records may be classified according to a time period to which a change time of each history change record in the at least one pre-stored history change record belongs, to obtain at least one history change record set; and adding a time tag to each history change record set, wherein the time tag is used for indicating the time period to which each history change record in the history change record set belongs.
In one embodiment, the selecting a target history change record corresponding to the target change time from the at least one history change record includes: determining a target history change record set matched with the target change time from the history change record sets according to the indication of the time labels corresponding to the history change record sets; and acquiring a target history change record under the target change time from the target history change record set.
In one embodiment, after determining at least one change node from the at least one storage node, the historical node data of the target document under each change node may be updated based on the change sub-information corresponding to each change node; detecting whether each change node in the tree-shaped storage structure has a superior node or not, and if the change node has the superior node, updating the historical node data corresponding to the superior node based on the updated node data under the change node.
In an embodiment, before the acquiring the historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identifier, when the acquiring request carrying the document identifier of the target document sent by the client is received, performing identity authentication on the user corresponding to the acquiring request by adopting 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 historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identification.
In a second aspect, an embodiment of the present invention provides an information processing apparatus including a module for performing the method of the first aspect described above.
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 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 historical receipt information of the target receipt under the system time and at least one historical change record corresponding to the target receipt from the storage area corresponding to the target receipt based on the receipt identification of the target receipt, and each historical change record comprises the change time. Further, the server may determine, from at least one change time, a change time closest to the specified time as a target change time, determine a target history change record corresponding to the target change time, update the history document information according to the document data after the change corresponding to the target change time, obtain target document information of the target document at the specified time, and then return the target document information to the client. By adopting the embodiment of the application, the bill information of the target bill under the system time can be automatically restored to the bill information under the appointed time, thereby being beneficial to improving the restoration efficiency of the bill data.
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 processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another information processing method according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a tree-like storage structure of a target document according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of a tree-like storage structure of another target document according to an embodiment of the present invention;
FIG. 3c is a schematic diagram of a storage structure of a change record corresponding to a target document according to an embodiment of the present invention;
FIG. 3d is a schematic diagram of a tree-like storage structure of a target document according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of an information processing apparatus provided by an embodiment of the present invention;
fig. 5 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 application 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 application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The information processing method provided by the application can be applied to the server corresponding to the bill management platform, and the bill management platform is used for providing related service of 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).
Referring to fig. 1, fig. 1 is a flowchart of an information processing method according to an 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 information processing method 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 historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identifier, and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises the change time of the change.
In one embodiment, the server applied by the application 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 update any document (i.e. the target document) for multiple times according to the own requirement, and each update uses the current document information to update the last historical document information, and manages 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 addition, the server can record the updated historical bill data and updated bill data corresponding to the target bill at each time, and generate a change record of the current update by combining the updated time of the current update, the historical bill data and the bill data after the current update, and further store the change record of the current update and the bill identification of the target bill in the storage area in a correlated manner.
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 only stores the historical document data corresponding to the latest update, the server uses 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) after the latest update of the target document based on the document identification.
Accordingly, in addition to obtaining the historical document information of the target document under the system time, the server may also obtain at least one historical change record matched with the document identifier from the storage area based on the document identifier of the target document. Before the system time, how many changes exist in the target bill, and how many historical change records are corresponding. Each history change record comprises change time, history bill data of the target bill before the current change and bill data after the current change.
S103: the method comprises the steps of determining the latest change time before a specified time from at least one change time as a target change time, and determining a target history change record corresponding to the target change time from at least one history change record, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time.
In one embodiment, each change time corresponds to a historical change record. In one embodiment, assume that the target document has 3 change records before system time, the change time for each change and the historical change record are shown in Table 1. Assuming that the specified time is 4.3 days, the server may determine 4.2 before 4.3 days as the target change time, and determine P2 as a history change record corresponding to the target change time from among the history change records P1 and P2.
TABLE 1
Change time History change record
3.1 P1
4.2 P2
S104: and updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill under the appointed time, and then returning the target bill information to the client.
In one embodiment, the server may update the historical document information of the target document according to the document data after the change corresponding to the target change time, so as to obtain the target document information of the target document in the designated time, thereby implementing the restoration of the document data, and restoring the document information of the target document in the system time to the document information in the designated time. Further, the server can return the target document information to the client, and the user can acquire the target document information through the client.
In one embodiment, before acquiring the historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identifier, when receiving the acquisition request carrying the document identifier of the target document sent by the client, the server may perform identity authentication on the user corresponding to the acquisition 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 historical bill information of the target bill in 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 in communication with the server, and the electronic device may send 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 historical receipt information of the target receipt under the system time and at least one historical change record corresponding to the target receipt from the storage area corresponding to the target receipt based on the receipt identification of the target receipt, and each historical change record comprises the change time. Further, the server may determine, from at least one change time, a change time closest to the specified time as a target change time, determine a target history change record corresponding to the target change time, update the history document information according to the document data after the change corresponding to the target change time, obtain target document information of the target document at the specified time, and then return the target document information to the client. By adopting the embodiment of the application, the bill information of the target bill under the system time can be automatically restored to the bill information under the appointed time, thereby being beneficial to improving the restoration efficiency of the bill data.
Referring to fig. 2, fig. 2 is a flowchart of another information processing method provided in an 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 information processing method may include:
s201, classifying each history change record according to a time period of change time of each history change record in at least one prestored history change record to obtain at least one history change record set, and adding a time tag to each history change record set, wherein the time tag is used for indicating the time period of each history change record in the history change record set.
In one embodiment, the server may receive change result information for a change to a target document, the change result information including at least one change sub-information, each change sub-information corresponding to a change identification. In an embodiment, a storage structure corresponding to a storage area of the server in the embodiment of the present application may be a tree-like storage structure, where the tree-like storage structure includes at least one storage node, and before the server obtains at least one history change record corresponding to the target document from the storage area based on the document identifier, the server may further receive change result information for changing the target document, where the change result information includes at least one change sub-information, and each change sub-information corresponds to one change identifier. For example, when the target document is a policy, the change result information corresponding to the target document may relate to updating the name, age, school, etc. of the applicant, that is, the change result information corresponding to the update includes change sub-information corresponding to the name, age, school of the applicant, where the name, age, school of the applicant may be the change identifier corresponding to each change sub-information.
Further, the server may determine at least one change node from the at least one storage node based on a comparison of the change identifications with node identifications of the storage nodes in the at least one storage node, the node identification of each change node matching any change identification.
Further, the server may generate a change sub-record in the leaf node of each change node based on the corresponding change sub-information of each change node, and record the change time, and further generate a change record including each change sub-record and the change time. The change sub-record includes history node data before the change node is changed and node data after the change of the history node data.
In one embodiment, after determining at least one change node from at least one storage node, the server may further update historical node data of the target document under each change node based on change sub-information corresponding to each change node, so as to update document information of the target document.
In one embodiment, after updating the historical node data of the target document under each change node, the server may further detect whether each change node has a higher level storage node in the tree storage structure, and if the change node has a higher level node, update the historical node data corresponding to the higher level node based on the updated node data under the change 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. 3a, 3b and 3c, suppose that the user updates document P (i.e., the target document) on day 3 and 21 of 2019, the updated contents are: the amount of responsibility a is increased to 2000, and the history document information of the target document stored in the tree-like storage structure is shown in fig. 3a, and the amount of responsibility a in the change result information is 2000.
In this case, the server may identify, from the change result information corresponding to the document P, that the change identifier corresponding to the change result information is "responsibility a", find, based on the change identifier "responsibility a", a node corresponding to "responsibility a" in the tree-like storage structure, and determine that the change identifier "responsibility a" matches with the node "responsibility a" in the tree-like storage structure, and then may determine the node "responsibility a" as the change node. Further, the server may update the amount of money under the change node to 2000 based on the change sub-information (i.e., the amount of money 2000) corresponding to the change node "responsibility a".
Further, the server may detect that the change node has the superordinate node "clause 1" and "scheme 1", and update the amount corresponding to "clause 1" to "2000" and update the amount corresponding to "scheme 1" to "3000" step by step based on the updated node data "2000" under the change 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. The node corresponding to the "clause 1" and the node corresponding to the "scheme 1" are all superior nodes for changing the "responsibility a" of the node.
The history of the update to the document P at this time may be as shown in fig. 3 c. The server generates respective corresponding change sub-records in the leaf nodes of the change node "responsibility a" and all the upper nodes of the change node "responsibility a" (i.e. the nodes corresponding to the clause 1 "and the nodes corresponding to the scheme 1), which are respectively shown in fig. 3 c: 32. 31 and 30. The 3 change sub-records constitute the change record of the current update.
S202: receiving an acquisition request carrying a bill identifier of a target bill sent by a client, and acquiring historical bill information of the target bill under the system time and at least one historical change record corresponding to the target bill from a storage area corresponding to the target bill based on the bill identifier in the acquisition request, wherein each historical change record comprises the change time of the change.
S203: determining the latest change time before the specified time from at least one change time as a target change time, determining a target history change record set matched with the target change time from each history change record set according to the indication of the corresponding time label of each history change record set, and acquiring a target history change record under the target change time from the target history change record set, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time.
Each change stores a change record. When the storage area includes at least one history change record, the server may classify each history change record according to a time period to which a change time of each history change record in the at least one history change record belongs, to obtain at least one history change record set, and add a time tag to each history change record set, where the time tag is used to indicate the time period to which each history change record in the history change record set belongs.
In one embodiment, the server may pre-set a time period and pre-divide this time period by at least one time period. For example, with a year as a time period, the year may be divided into 4 time periods in a quarter as a minimum division unit, and the 4 time periods are respectively shown in table 2.
TABLE 2
Time period Corresponding time (unit: month)
First time period 1. 2 and 3
A second period of time 4. 5 and 6
Third time period 7. 8 and 9
Fourth time period 10. 11 and 12
In addition, if the year is a time period, the year is divided into 12 time periods by a minimum division unit of month, or other periods and minimum division units, the present application is not limited in particular.
In one embodiment, the server may pre-divide the time periods and add a time stamp for each time period. After the update of the target document is finished, the server generates a change record for the update, firstly identifies the time label of the pre-divided time period, determines the pre-divided time period to which the change time belongs, and stores the change record in a storage area under the target time period after determining the target time period to which the change time belongs, thereby completing the purpose of classifying the change record generated each time.
For example, assuming that 4 history change records corresponding to the target document are 4 history change records P1, P2, P3 and P4 before the system time, the change time corresponding to each history change record is 2019, 2019 and 2019, 4 are respectively 1, the 4 history change records are divided in advance, and P1, P2 and P3 are assigned to a first history change record set, and the first history change record set corresponds to a time tag 1 for indicating that a time period to which the change time corresponding to the history change record in the first history change record set corresponds is 2019, 1 month to 3 months; p4 belongs to a second history change record set, where the second history change record set corresponds to the time tag 1, and is used to indicate that a time period to which a change time corresponding to a history change record in the second history change record set belongs is from 4 months to 6 months in 2019. In this case, when the server determines that the target change time of the target document is 2019, 2, 15, the time tag of each history change record set may be identified, and it is determined that the target history change record set matching the target change time is the first history change record set. Further, a target history change record P2, which is a history change record at the target change time, is obtained from the first history change record set.
S204: and updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill under the appointed time, and then returning the target bill information to the client.
In one embodiment, the server may search the tree-like storage structure for the target node that matches each of the change nodes, and update the historical node data under the corresponding target node based on the node data after each of the change nodes changes at the target change time, so as to restore the bill information of the target bill under the system time to the bill information under the specified time.
For example, the target document is document P, which includes 2 insurance schemes under scheme 1 with clauses 1 and 2 under scheme 2 with clauses 3 and 4 under scheme 2, and each of the corresponding clauses has a number of responsibilities. The bill P is updated in data at 31 days of 3 months, the liability a changes the amount under the condition 1 in the scheme 1, the total amount under the condition 1 and the scheme 1 also changes correspondingly, after the data is updated successfully, the bill P is stored in the storage area with the latest data, and meanwhile, a change record is independently stored in the storage area, and the change of the amounts of the change scheme 1, the liability 1 and the liability a is recorded. For example, the document information before the current change of the document P refers to fig. 3a, the document information after the current change of the document P refers to fig. 3b, and the change record corresponding to the current change refers to fig. 3c.
Further, the user changes the bill P again for 4 months and 3 days, the change content is that the amount of responsibility a in fig. 3b is updated to 3000, and in the corresponding updated bill data, the amount of the conditional 1 is updated to 3000, and the amount of the scheme 1 is updated to 4000.
In this case, if the user obtains the target document information of the document P on 1 day of 4 months due to a certain service, for example, claims, the user may input the document number and the obtaining time (i.e., the designated time) of the document P in the document management platform, and submit the obtaining request. Further, the document management platform corresponding server may determine the 3 months 31 days as the target change time based on the obtaining request, obtain the target history change record shown in fig. 3c, and according to the changed document data corresponding to the target change time, that is, the new value 3000 of the scheme 1 node, the new value 2000 of the clause 1 node, and the new value 2000 of the responsible a node, where the nodes in the target change record are all change nodes. The server may also obtain the latest stored historical document information (i.e. the historical document information under the system time) based on the document identifier of the document P, where the storage structure corresponding to the latest historical document information is shown in fig. 3d.
Further, the server may read each node in fig. 3d one by one, determine whether the node matches a change node in the change record in fig. 3c, and determine that the target nodes corresponding to the change node are "scheme 1", "clause 1", and "clause 2" from fig. 3 d. Further, the server may obtain the change information of the target node recorded by the target change, and it can be seen that the "amount" under the scheme 1, the clause 1 and the responsibility a all change, update the historical node data under the corresponding target node based on the node data after the change of each change node under the target change time, and finally restore the amount corresponding to the "scheme 1" in fig. 3d from 4000 to 3000, restore the amount corresponding to the "clause 1" from 3000 to 2000, restore the amount corresponding to the "responsibility a" from 3000 to 2000, and restore the target document information of the target policy on 1 day of 4 months as shown in fig. 3 b.
In the embodiment of the application, the server classifies at least one history change record of the target bill by adopting a time period, and can search in the target history change record set corresponding to the target change time when the target history change record is acquired, thereby being beneficial to improving the efficiency of acquiring the target history change record.
The embodiment of the invention also provides an information processing device. 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 an information processing apparatus according to an embodiment of the present invention is provided. The information processing apparatus 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, historical document information of the target document under the system time from a storage area corresponding to the target document, and at least one historical change record corresponding to the target document, where each historical change record includes a change time of a change;
the processing module 41 is further configured to determine, from at least one of the change times, a change time that is the latest before the specified time as a target change time, and determine, from the at least one history change record, a target history change record corresponding to the target change time, where the target history change record includes document data before the change corresponding to the target change time and document data after the change corresponding to the target change time;
The processing module 41 is further configured to update the historical document information according to the document data after the change corresponding to the target change time, so as to obtain target document information of the target document at a specified time;
the communication module 40 is further configured to return the target document information to the client.
In one embodiment, the storage structure corresponding to the storage area is a tree-like storage structure, the tree-like storage structure includes at least one storage node, and the communication module 40 is further configured to receive change result information for changing the target document, where the change result information includes at least one change sub-information, and each change sub-information corresponds to a change identifier;
the processing module 41 is further configured to determine at least one change node from the at least one storage node based on a comparison result between each change identifier and a node identifier of each storage node in the at least one storage node, where the node identifier of each change node matches any change identifier;
the processing module 41 is further configured to generate a change sub-record in a leaf node of each change node and record a change time based on the change sub-information corresponding to each change node, where the change sub-record includes historical node data before the change node is changed and node data after the change of the historical node data;
The processing module 41 is further configured to generate a change record including each of the change sub-records and the change time.
In one embodiment, the document data after modification corresponding to the target modification time includes node data after modification of each modification node in the target modification time, and the processing module 41 is specifically configured to search the tree-like storage structure for a target node that matches each modification node; and updating the historical node data under the corresponding target nodes based on the node data after the change of each change node under the target change time.
In one embodiment, the processing module 41 is further configured to classify each history change record according to a time period to which a change time of each history change record in the at least one pre-stored history change record belongs, so as to obtain at least one history change record set; and adding a time tag to each history change record set, wherein the time tag is used for indicating the time period to which each history change record in the history change record set belongs.
In one embodiment, the processing module 41 is further specifically configured to determine, from the history change record sets, a target history change record set that matches the target change time according to the indication of the time tag corresponding to each of the history change record sets; and acquiring a target history change record under the target change time from the target history change record set.
In one embodiment, the processing module 41 is further configured to update historical node data of the target document under each change node based on the change sub-information corresponding to each change node; detecting whether each change node in the tree-shaped storage structure has a superior node or not, and if the change node has the superior node, updating the historical node data corresponding to the superior node based on the updated node data under the change node.
In one embodiment, the processing module 41 is further configured to, when receiving, through the communication module 40, the acquisition request carrying the document identifier of the target document sent by the client, perform identity authentication on the user corresponding to the acquisition request by using 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 to acquire the historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identification.
It should be noted that, the functions of each functional module of the information processing apparatus described in the embodiments of the present invention 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 relevant 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 according to an embodiment of the present invention, and as shown in fig. 5, the server includes a processor 501, a memory 502, and a network interface 503. The processor 501, memory 502, and network interface 503 may be connected by a bus or otherwise, as illustrated in fig. 5 in an embodiment of the present invention. 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 historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identification, and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises a change time of change; determining the latest change time before the specified time from at least one change time as a target change time, and determining a target history change record corresponding to the target change time from at least one history change record, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time; updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill in the appointed time; the target document information is returned to the client via network interface 503.
In one embodiment, the storage structure corresponding to the storage area is a tree-like storage structure, the tree-like storage structure includes at least one storage node, the network interface 503 is further configured to receive change result information for changing the target document, where the change result information includes at least one change sub-information, and each change sub-information corresponds to a change identifier;
the processor 501 is further configured to determine at least one change node from the at least one storage node based on a comparison result of each change identifier and a node identifier of each storage node in the at least one storage node, where the node identifier of each change node matches any change identifier;
the processor 501 is further configured to generate a change sub-record in a leaf node of each change node and record a change time based on the change sub-information corresponding to each change node, where the change sub-record includes historical node data before the change node changes, and node data after the change of the historical node data;
the processor 501 is further configured to generate a change record including each of the change sub-records and the change time.
In one embodiment, the document data after modification corresponding to the target modification time includes node data after modification of each modification node in the target modification time, and the processor 501 is specifically configured to search the tree storage structure for a target node that matches each modification node; and updating the historical node data under the corresponding target nodes based on the node data after the change of each change node under the target change time.
In one embodiment, the processor 501 is further configured to classify each history change record according to a time period to which a change time of each history change record in the at least one pre-stored history change record belongs, to obtain at least one history change record set; and adding a time tag to each history change record set, wherein the time tag is used for indicating the time period to which each history change record in the history change record set belongs.
In one embodiment, the processor 501 is further specifically configured to determine, from the history change record sets, a target history change record set that matches the target change time according to the indication of the time tag corresponding to each of the history change record sets; and acquiring a target history change record under the target change time from the target history change record set.
In one embodiment, the processor 501 is further configured to update historical node data of the target document under each change node based on the change sub-information corresponding to each change node; detecting whether each change node in the tree-shaped storage structure has a superior node or not, and if the change node has the superior node, updating the historical node data corresponding to the superior node based on the updated node data under the change node.
In one embodiment, the processor 501 is further configured to, when receiving, through the network interface 503, the acquisition request of the document identifier carrying the target document sent by the client, perform identity authentication on the user corresponding to the acquisition request by using 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 to acquire the historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identification.
It should be appreciated that in embodiments of the present invention, the processor 501 may be a central processing unit (CentralProcessing Unit, CPU), the processor 501 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific IntegratedCircuit, ASIC), 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 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 invention may perform the implementation described in the method embodiment of fig. 1 or fig. 2 provided in the embodiments of the present invention, and may also perform the implementation of the information processing apparatus 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: 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 historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identification, and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises a change time of change; determining the latest change time before the specified time from at least one change time as a target change time, and determining a target history change record corresponding to the target change time from at least one history change record, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time; updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill in the appointed time; and returning the target bill information to the client. 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 (9)

1. An information processing method, characterized in that the method comprises:
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 historical receipt information of the target receipt under the system time from a storage area corresponding to the target receipt based on the receipt identification, and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises a change time of change;
Determining the latest change time before the specified time from at least one change time as a target change time, and determining a target history change record corresponding to the target change time from at least one history change record, wherein the target history change record comprises bill data before change corresponding to the target change time and bill data after change corresponding to the target change time;
updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill in the appointed time;
returning the target bill information to the client;
the storage structure corresponding to the storage area is a tree-shaped storage structure, and the tree-shaped storage structure comprises at least one storage node; before the historical receipt information of the target receipt under the system time and at least one historical change record corresponding to the target receipt are obtained from the storage area corresponding to the target receipt based on the receipt identification, the method further comprises:
receiving change result information for changing a target bill, wherein the change result information comprises at least one piece of change sub-information, and each piece of change sub-information corresponds to one change mark;
Determining at least one change node from the at least one storage node based on the comparison result of each change identifier and the node identifier of each storage node in the at least one storage node, wherein the node identifier of each change node is matched with any change identifier;
generating a change sub-record in leaf nodes of each change node based on the change sub-information corresponding to each change node, recording change time, and generating a change record comprising each change sub-record and the change time; the change sub-record comprises historical node data before the change of the change node and node data after the change of the historical node data.
2. The method of claim 1, wherein the changed document data corresponding to the target change time includes node data changed by each change node at the target change time, and the updating the historical document information according to the changed document data corresponding to the target change time includes:
searching target nodes matched with each changed node in the tree-shaped storage structure;
and updating the historical node data under the corresponding target nodes based on the node data after the change of each change node under the target change time.
3. The method according to claim 1, wherein the method further comprises:
classifying each history change record according to a time period of change time of each history change record in at least one prestored history change record to obtain at least one history change record set;
and adding a time tag to each history change record set, wherein the time tag is used for indicating the time period to which each history change record in the history change record set belongs.
4. The method of claim 3, wherein selecting a target history change record corresponding to the target change time from the at least one history change record comprises:
determining a target history change record set matched with the target change time from the history change record sets according to the indication of the time labels corresponding to the history change record sets;
and acquiring a target history change record under the target change time from the target history change record set.
5. The method of claim 1, wherein after the determining at least one change node from the at least one storage node, the method further comprises:
Updating the historical node data of the target bill under each change node based on the change sub-information corresponding to each change node;
detecting whether each change node in the tree-shaped storage structure has a superior node or not, and if the change node has the superior node, updating the historical node data corresponding to the superior node based on the updated node data under the change node.
6. The method according to any one of claims 1-5, wherein before the acquiring, based on the document identifier, the historical document information of the target document at the system time from the storage area corresponding to the target document, the method further includes:
when receiving the acquisition request carrying the bill identification of the target bill sent by the client, carrying out identity authentication on a user corresponding to the acquisition request by adopting a preset authentication mode, wherein the preset authentication mode comprises biological characteristic information authentication and/or password authentication;
and if the user passes the authentication, triggering and executing the step of acquiring the historical document information of the target document in the system time from the storage area corresponding to the target document based on the document identification.
7. An information processing apparatus, characterized in that the apparatus comprises:
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 the historical receipt information of the target receipt under the system time from the storage area corresponding to the target receipt based on the receipt identification and at least one historical change record corresponding to the target receipt, wherein each historical change record comprises the change time of the change;
the processing module is further configured to determine, from at least one of the change times, a change time that is closest before the specified time as a target change time, and determine, from the at least one history change record, a target history change record corresponding to the target change time, where the target history change record includes document data before change corresponding to the target change time and document data after change corresponding to the target change time;
the processing module is further used for updating the historical bill information according to the bill data after the change corresponding to the target change time to obtain target bill information of the target bill in the appointed time;
The communication module is also used for returning the target bill information to the client;
the storage structure corresponding to the storage area is a tree-shaped storage structure, and the tree-shaped storage structure comprises at least one storage node; the communication module is further used for receiving change result information for changing the target bill, the change result information comprises at least one change sub-information, and each change sub-information corresponds to one change identifier;
the processing module is further configured to determine at least one change node from the at least one storage node based on a comparison result of each change identifier and a node identifier of each storage node in the at least one storage node, where the node identifier of each change node is matched with any change identifier; generating a change sub-record in leaf nodes of each change node based on the change sub-information corresponding to each change node, recording change time, and generating a change record comprising each change sub-record and the change time; the change sub-record comprises historical node data before the change of the change node and node data after the change of the historical node data.
8. 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-6.
9. 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-6.
CN201910669796.2A 2019-07-23 2019-07-23 Information processing method and related equipment Active CN110457332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910669796.2A CN110457332B (en) 2019-07-23 2019-07-23 Information processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910669796.2A CN110457332B (en) 2019-07-23 2019-07-23 Information processing method and related equipment

Publications (2)

Publication Number Publication Date
CN110457332A CN110457332A (en) 2019-11-15
CN110457332B true CN110457332B (en) 2023-08-22

Family

ID=68483206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910669796.2A Active CN110457332B (en) 2019-07-23 2019-07-23 Information processing method and related equipment

Country Status (1)

Country Link
CN (1) CN110457332B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708335A (en) * 2020-06-03 2020-09-25 深圳前海禾盈科技有限公司 Equipment data acquisition method based on smart factory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430178A (en) * 2013-01-30 2013-12-04 华为技术有限公司 Method, apparatus and product of data updating
JP2016126664A (en) * 2015-01-07 2016-07-11 グローリー株式会社 Electronic booking system and slip information management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7047325B2 (en) * 2017-10-23 2022-04-05 富士フイルムビジネスイノベーション株式会社 Information processing equipment and programs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430178A (en) * 2013-01-30 2013-12-04 华为技术有限公司 Method, apparatus and product of data updating
JP2016126664A (en) * 2015-01-07 2016-07-11 グローリー株式会社 Electronic booking system and slip information management method

Also Published As

Publication number Publication date
CN110457332A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN110489415B (en) Data updating method and related equipment
CN104639517A (en) Method and device for verifying identities by aid of human body biological characteristics
CN111815420B (en) Matching method, device and equipment based on trusted asset data
KR20210082110A (en) A system for providing real estate asset valuation services using a time series trend prediction learning model for real transaction price prediction
CN110704418A (en) Block chain information query method, device and equipment
CN101452556A (en) Customer information processing system and method
CN115952220A (en) Bill processing method and device based on block chain, electronic equipment and medium
CN110457332B (en) Information processing method and related equipment
CN112307318A (en) Content publishing method, system and device
CN110489416B (en) Information storage method based on data processing and related equipment
CN104704521A (en) Multi-factor profile and security fingerprint analysis
CN111461191B (en) Method and device for determining image sample set for model training and electronic equipment
CN116993523A (en) Configurable account checking method, device, equipment and storage medium
CN113468886B (en) Work order processing method and device and computer equipment
CN113610503A (en) Resume information processing method, device, equipment and medium
CN112860722A (en) Data checking method and device, electronic equipment and readable storage medium
CN110879835A (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110489275B (en) Document information processing method and related equipment
CN105653525B (en) Method and system for importing data between account sets
US11860753B1 (en) Monitoring a distributed ledger network using hierarchical validation workflows
CN110728566B (en) Data processing method and device in reimbursement file, computer equipment and storage medium
CN112101926B (en) Intelligent payment method and system for patent annual fee
CN116645157A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN116596654A (en) Index calculation method, apparatus, computer device, and storage medium
CN115187339A (en) Business order information processing method and device based on artificial intelligence

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