CN114036132A - Object information processing method and device, storage medium and electronic equipment - Google Patents

Object information processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114036132A
CN114036132A CN202111342778.7A CN202111342778A CN114036132A CN 114036132 A CN114036132 A CN 114036132A CN 202111342778 A CN202111342778 A CN 202111342778A CN 114036132 A CN114036132 A CN 114036132A
Authority
CN
China
Prior art keywords
information
target
object information
historical
current object
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.)
Pending
Application number
CN202111342778.7A
Other languages
Chinese (zh)
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.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202111342778.7A priority Critical patent/CN114036132A/en
Publication of CN114036132A publication Critical patent/CN114036132A/en
Pending legal-status Critical Current

Links

Images

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/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • 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

Abstract

The disclosure relates to a method and a device for processing object information, a storage medium and electronic equipment, relating to the technical field of electronic information, wherein the method comprises the following steps: and monitoring the specified data source, and acquiring the current object information of the target object and the historical information set corresponding to the target object under the condition that the target object information of the target object is changed. It is determined whether there is target history information in the history information set that matches the current object information. And if the target historical information exists, updating the historical information set according to the target historical information. And if the target historical information does not exist, storing the current object information into a historical information set. The method and the device have the advantages that under the condition that the target historical information matched with the current object information does not exist in the historical information set, the current object information of the target object is stored in the historical information set, the record of the historical information can be realized, and meanwhile, the accuracy of the historical information can be guaranteed.

Description

Object information processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic information technology, and in particular, to a method and an apparatus for processing object information, a storage medium, and an electronic device.
Background
With the rapid development of electronic information technology, a great deal of information is generated on the internet, and the information is frequently changed. In an application program providing a query service, in consideration of problems such as a storage space and query efficiency, only the latest information of an object is generally stored, and when a user queries the information of the object, only the latest information of the object can be provided. For example, a user needs to query shareholder information of a company, only current shareholder information of the company can be queried, and the change process of the share ratio data cannot be traced.
Disclosure of Invention
The present disclosure is directed to a method, an apparatus, a storage medium, and an electronic device for processing object information, which are used to solve the related problems in the prior art.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing object information, the method including:
monitoring a specified data source, and acquiring current object information of a target object and a historical information set corresponding to the target object under the condition that target object information of the target object is changed;
determining whether target historical information matched with the current object information exists in the historical information set;
if the target historical information exists, updating the historical information set according to the target historical information;
and if the target historical information does not exist, storing the current object information into the historical information set.
Optionally, the storing the current object information into the historical information set includes:
packaging the current object information according to a specified format;
and storing the packaged current object information and identification information to a designated field in a designated row, wherein the identification information is used for identifying the packaged current object information.
Optionally, the encapsulating the current object information according to a specified format includes:
and packaging the current object information according to a JSON format.
Optionally, if the target history information exists, updating the history information set according to the target history information, including:
if the target historical information exists, deleting the historical information of which the storage time is later than that of the target historical information in the historical information set; the current object information is not stored in the historical information set.
Optionally, the method further comprises:
acquiring the target object information from the specified data source under the condition that the target object information is changed;
and updating the current object information according to the target object information.
Optionally, the updating the current object information according to the target object information includes:
determining a target operation according to the target object information and the current object information, wherein the target operation comprises: any one of addition, modification, and deletion;
and modifying the current object information into the target object information through the target operation.
Optionally, the method further comprises:
responding to a query instruction aiming at the target object, and displaying the updated current object information; and/or the presence of a gas in the gas,
and responding to a historical query instruction aiming at the target object, and showing the historical information set.
Optionally, the presenting the historical information set in response to the historical query instruction for the target object includes:
responding to the historical query instruction, and determining target identification information according to the change times indicated by the historical query instruction;
and acquiring and displaying the historical information identified by the target identification information from the historical information set according to the target identification information.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for processing object information, the apparatus including:
the monitoring module is used for monitoring a specified data source and acquiring current object information of a target object and a historical information set corresponding to the target object under the condition that target object information of the target object is changed;
the determining module is used for determining whether target historical information matched with the current object information exists in the historical information set;
the first updating module is used for updating the historical information set according to the target historical information if the target historical information exists;
and the storage module is used for storing the current object information into the historical information set if the target historical information does not exist.
Optionally, the storage module includes:
the packaging submodule is used for packaging the current object information according to a specified format;
and the storage submodule is used for storing the packaged current object information and the identification information to a specified field in a specified row, and the identification information is used for identifying the packaged current object information.
Optionally, the encapsulation submodule is configured to:
and packaging the current object information according to a JSON format.
Optionally, the first updating module is configured to:
if the target historical information exists, deleting the historical information of which the storage time is later than that of the target historical information in the historical information set; the current object information is not stored in the historical information set.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the target object information from the specified data source under the condition that the target object information is changed;
and the second updating module is used for updating the current object information according to the target object information.
Optionally, the second updating module includes:
a first determining submodule, configured to determine a target operation according to the target object information and the current object information, where the target operation includes: any one of addition, modification, and deletion;
and the modification submodule is used for modifying the current object information into the target object information through the target operation.
Optionally, the apparatus further comprises a display module for:
responding to a query instruction aiming at the target object, and displaying the updated current object information; and/or the presence of a gas in the gas,
and responding to a historical query instruction aiming at the target object, and showing the historical information set.
Optionally, the display module comprises:
the second determining submodule is used for responding to the historical query instruction and determining target identification information according to the change times indicated by the historical query instruction;
and the display submodule is used for acquiring and displaying the historical information identified by the target identification information from the historical information set according to the target identification information.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the first aspects of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of the first aspect of the present disclosure.
Through the technical scheme, the method and the device for processing the target object information acquire the current object information of the target object and the historical information set corresponding to the target object under the condition that the target object information of the target object is changed. And then determining whether target historical information matched with the current object information exists in the historical information set. If the target history information exists, the history information set is updated according to the target history information. If the target historical information does not exist, the current object information is stored in the historical information set. The method and the device have the advantages that under the condition that the target historical information matched with the current object information does not exist in the historical information set, the current object information of the target object is stored in the historical information set, the record of the historical information can be realized, and meanwhile, the accuracy of the historical information can be guaranteed.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of processing object information in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 3 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 4 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 5 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 6 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 7 is a flow diagram illustrating another method of processing object information in accordance with an illustrative embodiment;
FIG. 8 is a block diagram illustrating an apparatus for processing object information in accordance with an illustrative embodiment;
fig. 9 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment;
fig. 10 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment;
fig. 11 is a block diagram illustrating another object information processing apparatus according to an example embodiment;
fig. 12 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment;
fig. 13 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment;
FIG. 14 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of processing object information according to an exemplary embodiment, as shown in fig. 1, the method including:
step 101, monitoring the designated data source, and acquiring the current object information of the target object and the history information set corresponding to the target object when the target object information of the target object is changed.
Step 102, determining whether target history information matched with the current object information exists in the history information set.
For example, a first database corresponding to a specific data source may be monitored in real time, object information of a plurality of objects may be stored and dynamically updated in the first database, and each object information may include a plurality of data. When the target object information of the target object stored in the first database is changed, the current object information of the target object may be obtained from the second database, and the history information set corresponding to the target object may be obtained from the third database. The target object information may be understood as the latest object information of the target object stored in the first database.
The number of the designated data sources may be one or more. Accordingly, the first database may be one or more. It should be noted that the execution subject of this embodiment may be a server corresponding to an application program providing query service, and the local database is a database stored in the server. For example: the designated data source may be, for example, an industry and commerce public network, an enterprise public network, an annual newspaper system, and the like, and correspondingly, the first database is a database corresponding to the industry and commerce public network, the enterprise public network, and the annual newspaper system, and the server may monitor and acquire the target object information through an API (Application Programming Interface, chinese) Interface provided by the designated data source. The designated data source stores object information of an object, wherein the object can be a company or a legal person, correspondingly, the object information can be shareholder information of a corresponding company, the shareholder information can comprise a shareholder name, a payment contribution amount, a contribution ratio of the shareholder and the like, the object information can also be legal person information of a corresponding legal person, and the legal person information can comprise: a registry, a business segment, an organization code, a tax registration number, etc. When the information of the shareholder of a certain company in the industrial and commercial public network is changed, the information of the shareholder after the change of the company (namely, the target object information) can be obtained from the database corresponding to the industrial and commercial public network.
The second database may be understood as a database stored locally (i.e. in a Server), and may be, for example, SQL (Structured Query Language) Server, MySQL, Oracle, or the like. The current object information may be understood as the latest object information of the target object stored in the second database, the version of the current object information being older than the version of the target object information obtained from the specified data source. The history information set is used to store history information of each change of the target object before the current time, and may be stored in a designated row of a third database in a table storage (english: TableStore), and the third database may be, for example, TableStore. It should be noted that, the third database may store multiple sets of history information corresponding to objects, where each row is used to store one set of history information corresponding to an object, that is, the set of history information corresponding to each object is stored in a different row in the third database. And, the third database may allocate a storage space for the history information of the current object according to the size of the history information of the current object. Because the table storage mode can dynamically allocate the space with the same size as the data to the data before the data is stored, a structural storage mode of allocating a fixed storage space in advance is not needed, and the storage space of the database can be saved. Therefore, the historical information sets corresponding to the objects are stored in different rows according to the table storage mode, the historical information can be inquired quickly, fixed storage space does not need to be allocated in advance, waste of database resources is avoided, and the utilization rate of the database resources and the inquiry rate of the historical information can be improved.
And then, searching the historical information in a centralized manner, and judging whether target historical information matched with the current object information exists. The matching between the current object information and the target history information may be that the current object information is completely the same as the target history information, or that the current object information is the same as the specified data in the target history information, which is not specifically limited in this disclosure. Taking the object information as the shareholder information as an example, the current object information is matched with the target historical information, and the object information can be the shareholder name, the subscription and payment fund amount, the actual payment fund amount and the fund proportion of the shareholder which are completely the same, or the shareholder name which is the same.
And 103, if the target history information exists, updating the history information set according to the target history information.
And step 104, if the target historical information does not exist, storing the current object information into a historical information set.
For example, if there is no target history information in the history information set corresponding to the target object that matches the current object information of the locally stored target object, indicating that the history information in the history information set is not abnormally jittered, the current object information may be stored in a specific row in the history information set. Specifically, the current object information may be encapsulated first, and then the encapsulated current object information is stored in the designated field of the designated line in the history information set, or the current object information may be directly stored in the designated field of the designated line in the history information set. Therefore, when the object information of the target object changes, the current object information can be stored into the history information set, so that the history information of the object can be traced.
If the target historical information matched with the current object information of the locally stored target object exists in the historical information set corresponding to the target object, the fact that the stored object information is abnormally jittered in the time period from the time when the target historical information is stored to the current time is shown, so that the historical information in the historical information set is inaccurate, the current object information is not stored in the historical information set, and the historical information before jittering is screened out and reserved according to the target historical information, so that the historical information set is updated, and the accuracy of the historical information is guaranteed.
In summary, the present disclosure first monitors a designated data source, and obtains current object information of a target object and a history information set corresponding to the target object when target object information of the target object is changed. And then determining whether target historical information matched with the current object information exists in the historical information set. If the target history information exists, the history information set is updated according to the target history information. If the target historical information does not exist, the current object information is stored in the historical information set. The method and the device have the advantages that under the condition that the target historical information matched with the current object information does not exist in the historical information set, the current object information of the target object is stored in the historical information set, the record of the historical information can be realized, and meanwhile, the accuracy of the historical information can be guaranteed.
Fig. 2 is a flowchart illustrating another object information processing method according to an exemplary embodiment, and as shown in fig. 2, step 104 may be implemented by:
step 1041, packaging the current object information according to a specified format.
Step 1042, storing the packaged current object information and the identification information to the specified field in the specified row, where the identification information is used to identify the packaged current object information.
In an application scenario, one implementation manner of step 1041 may be:
and packaging the current object information according to a JSON format.
For example, in the case that there is no target history information matching the current object information of the locally stored target object in the history information set corresponding to the target object, the current object information may be first packaged in a specified format to be stored in a field of a specified row in the third database. The specified format may be, for example, a JSON format. For example: the current object information comprises a plurality of data, and the plurality of data in the current object information are encapsulated according to the JSON format, so that the following JSON data can be obtained:
{ shareholder _ graph _ id: stockholder gid;
shareholder _ name is the name of the shareholder;
shareholder _ name _ alias, shareholder alias;
shareholder _ type is shareholder type;
amount is the payment amount of the payment;
the title is the details of the paid payment amount;
amountActl is the real payment amount;
the capita acttl is the details of the real payment amount;
percentage-funding proportion of shareholder }.
Then, corresponding identification information can be generated according to the packaged current object information, and the packaged current object information and the identification information are stored in a specified field in a specified row. The identification information is used to identify the packaged current object information, and may be, for example, a timestamp used to identify a storage time of the packaged current object information, or an ID used to identify a number of times of changing the object information of the target object, which is not limited in this disclosure. That is to say, each object information stored in the history information set corresponds to a unique identification information, and the required object information can be quickly found in the history information set according to the identification information, so that the information query rate is improved.
For example: if the identification information is a time stamp for identifying the storage time of the packaged current object information, the storage time of the packaged current object information is 2021 year, 10 month, 1 day 10: 15: 30, the identification information corresponding to the packaged current object information may be: 10/1/10/2021: 15: 30. if the ID of the number of times of changing the object information of the target object indicates that the number of times of changing the object information of the target object is 8, the identification information corresponding to the packaged current object information may be 0008.
Fig. 3 is a flowchart illustrating another object information processing method according to an exemplary embodiment, and as shown in fig. 3, step 103 may be implemented by:
and step 1031, if the target history information exists, deleting the history information of which the history information is stored later than the target history information in a centralized manner.
Step 1032 does not store the current object information into the historical information set.
For example, if there is target history information matching current object information of a locally stored target object in a history information set corresponding to the target object, indicating that the stored object information is abnormally jittered during a period of time from the time when the target history information is stored to the current time, and the history information in the history information set is inaccurate, the history information stored later than the target history information in the history information set may be deleted, and the current object information is not stored in the history information set, so as to ensure the accuracy of the history information.
Specifically, the current object information is set as { shareholder: a, B, history information in the history information set is sequentially { shareholder: a } { shareholder: a, b } { shareholder: b, then { shareholder: b, and current object information { shareholder: a, B are stored in the history information set.
Fig. 4 is a flowchart illustrating another object information processing method according to an exemplary embodiment, as shown in fig. 4, the method further includes:
step 105, when the target object information is changed, acquires the target object information from the designated data source.
And step 106, updating the current object information according to the target object information.
For example, in the case that it is monitored that the target object information is changed, the target object information may be acquired from the specified data source, and the current object information stored in the second specified database may be updated according to the target object information acquired from the specified data source. Specifically, the target object information and the current object information may be compared, and the current object information may be added, modified, or deleted according to a difference between the target object information and the current object information, so that the current object information is updated to the target object information.
Fig. 5 is a flowchart illustrating another object information processing method according to an exemplary embodiment, and as shown in fig. 5, step 106 may be implemented by:
step 1061, determining a target operation according to the target object information and the current object information, wherein the target operation includes: any of addition, modification, deletion.
Step 1062, modifying the current object information into the target object information through the target operation.
For example, before updating the current object information of the target object in the second database, the target object information obtained from the specified data source may be compared with the current object information, and the target operation may be determined according to a difference between the target object information and the current object information. Wherein the target operation may include: any of addition, modification, deletion. And then, the current object information can be modified into the target object information through target operation, so that the current object information is updated. Specifically, if the target object information is added with new data on the basis of the current object information as compared with the current object information, it may be determined that the target operation is added, and the new data is added to the current object information. If the target object information is different from some data in the current object information, the target operation can be determined as modification, and the data in the current object information, which is different from the target object information, is modified into the corresponding data in the target object information. If the target object information is reduced by some data compared to the current object information, then the target operation may be determined to be a delete and the reduced data in the current object information may be deleted.
Specifically, taking the current object information as { a, B, C } as an example, if the target object information is { a, B, C, D }, it may be determined that the target operation is an increase, and D is added to the current object information. If the target object information is { A, B }, then the target operation may be determined to be delete and C in the current object information is deleted. If the target object information is { A, B, E }, then the target operation may be determined to be modified and C in the current object information may be modified to E.
Fig. 6 is a flowchart illustrating another object information processing method according to an exemplary embodiment, and as shown in fig. 6, the method may further include:
and step 107, responding to the query instruction aiming at the target object, and displaying the updated current object information. And/or the presence of a gas in the gas,
step 108, responding to the historical query instruction aiming at the target object, and displaying the historical information set.
For example, when a user needs to query object information of a target object, a query instruction for the target object may be triggered by a terminal device on which an application providing a query service or a web page corresponding to the application is installed, and the terminal device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. After receiving the query instruction, the server may parse the query instruction and determine a target object indicated by the query instruction. And then, acquiring the current object information of the target object in a second database, and displaying the current object information through a display interface of the terminal equipment.
When a user needs to inquire the history information of the target object, a history inquiry instruction aiming at the target object can be triggered through the terminal equipment. After receiving the historical query instruction, the query instruction may be parsed, and the target object indicated by the query instruction and the designated row in which the target object is located may be determined. Further, a history information set corresponding to the target object may be acquired in a designated row of the third database, and all history information included in the history information set may be displayed through a display interface of the terminal device. In this way, by storing the history information set of the target object in the specified row of the third database, the history information of the target object can be acquired quickly.
Fig. 7 is a flowchart illustrating another object information processing method according to an exemplary embodiment, and as shown in fig. 7, step 108 may be implemented by:
step 1081, in response to the historical query instruction, determining target identification information according to the number of changes indicated by the historical query instruction.
And step 1082, obtaining and displaying the historical information identified by the target identification information from the historical information set according to the target identification information.
For example, after receiving the historical query instruction, the historical query instruction may be parsed and the target object and the number of changes indicated by the historical query instruction may be determined. Thereafter, the target identification information may be determined according to the number of changes. For example: if the number of times of change is 5, the 5 th identification information arranged from morning to evening in chronological order in the history information set may be used as the target identification information. Furthermore, the historical information identified by the target identification information can be obtained from the historical information set and displayed on the display interface of the terminal device.
In summary, the present disclosure first monitors a designated data source, and obtains current object information of a target object and a history information set corresponding to the target object when target object information of the target object is changed. And then determining whether target historical information matched with the current object information exists in the historical information set. If the target history information exists, the history information set is updated according to the target history information. If the target historical information does not exist, the current object information is stored in the historical information set. The method and the device have the advantages that under the condition that the target historical information matched with the current object information does not exist in the historical information set, the current object information of the target object is stored in the historical information set, the record of the historical information can be realized, and meanwhile, the accuracy of the historical information can be guaranteed.
Fig. 8 is a block diagram illustrating an apparatus for processing object information according to an exemplary embodiment, and as shown in fig. 8, the apparatus 200 includes:
the monitoring module 201 is configured to monitor a specified data source, and acquire current object information of a target object and a history information set corresponding to the target object when target object information of the target object is changed.
A determining module 202, configured to determine whether there is target history information in the history information set that matches the current object information.
The first updating module 203 is configured to update the history information set according to the target history information if the target history information exists.
The storage module 204 is configured to store the current object information into the history information set if the target history information does not exist.
Fig. 9 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment, and as shown in fig. 9, the storage module 204 includes:
the encapsulating sub-module 2041 is configured to encapsulate the current object information according to a specified format.
The storage sub-module 2042 is configured to store the packaged current object information and the identification information to a specified field in a specified row, where the identification information is used to identify the packaged current object information.
In one application scenario, the encapsulation submodule 2041 is configured to:
and packaging the current object information according to a JSON format.
In another application scenario, the first updating module 203 is configured to:
and if the target historical information exists, deleting the historical information of which the storage time is later than that of the target historical information in the historical information set. The current object information is not stored in the historical information set.
Fig. 10 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment, and as shown in fig. 10, the apparatus 200 further includes:
an obtaining module 205, configured to obtain the target object information from the specified data source when the target object information is changed.
And a second updating module 206, configured to update the current object information according to the target object information.
Fig. 11 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment, and as shown in fig. 11, the second update module 206 includes:
the first determining submodule 2061 is configured to determine a target operation according to the target object information and the current object information, where the target operation includes: any of addition, modification, deletion.
The modification submodule 2062 is configured to modify the current object information into the target object information through the target operation.
Fig. 12 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment, and as shown in fig. 12, the apparatus 200 further includes a presentation module 207 for:
and displaying the updated current object information in response to the query instruction aiming at the target object. And/or the presence of a gas in the gas,
and in response to the historical query instruction aiming at the target object, the historical information set is presented.
Fig. 13 is a block diagram illustrating another object information processing apparatus according to an exemplary embodiment, and as shown in fig. 13, the presentation module 207 includes:
the second determining submodule 2071 is configured to, in response to the historical query instruction, determine the target identification information according to the number of changes indicated by the historical query instruction.
And a displaying sub-module 2072, configured to obtain and display the history information identified by the target identification information from the history information set according to the target identification information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In summary, the present disclosure first monitors a designated data source, and obtains current object information of a target object and a history information set corresponding to the target object when target object information of the target object is changed. And then determining whether target historical information matched with the current object information exists in the historical information set. If the target history information exists, the history information set is updated according to the target history information. If the target historical information does not exist, the current object information is stored in the historical information set. The method and the device have the advantages that under the condition that the target historical information matched with the current object information does not exist in the historical information set, the current object information of the target object is stored in the historical information set, the record of the historical information can be realized, and meanwhile, the accuracy of the historical information can be guaranteed.
FIG. 14 is a block diagram illustrating an electronic device 300 according to an example embodiment. For example, the electronic device 300 may be provided as a server. Referring to fig. 14, the electronic device 300 includes a processor 322, which may be one or more in number, and a memory 332 for storing computer programs executable by the processor 322. The computer program stored in memory 332 may include one or more modules that each correspond to a set of instructions. Further, the processor 322 may be configured to execute the computer program to perform the above-described processing method of the object information.
Additionally, electronic device 300 may also include a power component 326 and a communication component 350, the power component 326 may be configured to perform power management of the electronic device 300, and the communication component 350 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 300. In addition, the electronic device 300 may also include input/output (I/O) interfaces 358. The electronic device 300 may operate based on an operating system, such as Windows Server, stored in the memory 332TM,Mac OS XTM,UnixTM,LinuxTMAnd so on.
In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions, which when executed by a processor, implement the steps of the object information processing method described above. For example, the non-transitory computer readable storage medium may be the memory 332 including the program instructions, which are executable by the processor 322 of the electronic device 300 to perform the object information processing method described above.
In another exemplary embodiment, a computer program product is also provided, which contains a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned object information processing method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (11)

1. A method for processing object information, the method comprising:
monitoring a specified data source, and acquiring current object information of a target object and a historical information set corresponding to the target object under the condition that target object information of the target object is changed;
determining whether target historical information matched with the current object information exists in the historical information set;
if the target historical information exists, updating the historical information set according to the target historical information;
and if the target historical information does not exist, storing the current object information into the historical information set.
2. The method of claim 1, wherein storing the current object information into the historical information set comprises:
packaging the current object information according to a specified format;
and storing the packaged current object information and identification information to a designated field in a designated row, wherein the identification information is used for identifying the packaged current object information.
3. The method of claim 2, wherein encapsulating the current object information in a specified format comprises:
and packaging the current object information according to a JSON format.
4. The method of claim 1, wherein updating the history information set based on the target history information if the target history information exists comprises:
if the target historical information exists, deleting the historical information of which the concentrated storage time is later than that of the target historical information; the current object information is not stored in the historical information set.
5. The method of claim 1, further comprising:
acquiring the target object information from the specified data source under the condition that the target object information is changed;
and updating the current object information according to the target object information.
6. The method of claim 5, wherein the updating the current object information according to the target object information comprises:
determining a target operation according to the target object information and the current object information, wherein the target operation comprises: any one of addition, modification, and deletion;
and modifying the current object information into the target object information through the target operation.
7. The method of claim 5, further comprising:
responding to a query instruction aiming at the target object, and displaying the updated current object information; and/or the presence of a gas in the gas,
and responding to a historical query instruction aiming at the target object, and showing the historical information set.
8. The method of claim 7, wherein the exposing the historical information set in response to the historical query instruction for the target object comprises:
responding to the historical query instruction, and determining target identification information according to the change times indicated by the historical query instruction;
and acquiring and displaying the historical information identified by the target identification information from the historical information set according to the target identification information.
9. An apparatus for processing object information, the apparatus comprising:
the monitoring module is used for monitoring a specified data source and acquiring current object information of a target object and a historical information set corresponding to the target object under the condition that target object information of the target object is changed;
the determining module is used for determining whether target historical information matched with the current object information exists in the historical information set;
the first updating module is used for updating the historical information set according to the target historical information if the target historical information exists;
and the storage module is used for storing the current object information into the historical information set if the target historical information does not exist.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
11. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 8.
CN202111342778.7A 2021-11-12 2021-11-12 Object information processing method and device, storage medium and electronic equipment Pending CN114036132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111342778.7A CN114036132A (en) 2021-11-12 2021-11-12 Object information processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111342778.7A CN114036132A (en) 2021-11-12 2021-11-12 Object information processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114036132A true CN114036132A (en) 2022-02-11

Family

ID=80137553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111342778.7A Pending CN114036132A (en) 2021-11-12 2021-11-12 Object information processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114036132A (en)

Similar Documents

Publication Publication Date Title
CN109582303B (en) General component calling method, device, computer equipment and storage medium
US9305176B2 (en) Database generation from a spreadsheet
CN111339171B (en) Data query method, device and equipment
EP3557437B1 (en) Systems and methods for search template generation
US10109094B2 (en) Interface to index and display geospatial data
US20190095536A1 (en) Method and device for content recommendation and computer readable storage medium
CN104834660A (en) Interval based fuzzy database search
US10666720B2 (en) Maintenance of persistent master identifier for clusters of user identifiers across a plurality of devices
CN111950857A (en) Index system management method and device based on service indexes and electronic equipment
CN112115153A (en) Data processing method, device, equipment and storage medium
CN114003818A (en) Page recommendation method, device, server and storage medium
CN110990350B (en) Log analysis method and device
CN113760242A (en) Data processing method, device, server and medium
CN109271224B (en) Method and apparatus for determining position
CN107679198B (en) Information query method and device
CN109391537B (en) Information processing method and device and computer storage medium
CN114036132A (en) Object information processing method and device, storage medium and electronic equipment
CN111367500A (en) Data processing method and device
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN110727692B (en) Method and device for setting linkage chart
CN113011858A (en) Audit project configuration and execution method and device
CN111222067B (en) Information generation method and device
CN113204558A (en) Method and device for automatically updating data table structure
CN115034175A (en) Table data processing method, device, terminal and storage medium
CN113641678A (en) Dynamic service configuration method and system based on multi-dimensional form

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