CN111708795B - Object identification generation method, object identification updating device, computer equipment and medium - Google Patents

Object identification generation method, object identification updating device, computer equipment and medium Download PDF

Info

Publication number
CN111708795B
CN111708795B CN202010574582.XA CN202010574582A CN111708795B CN 111708795 B CN111708795 B CN 111708795B CN 202010574582 A CN202010574582 A CN 202010574582A CN 111708795 B CN111708795 B CN 111708795B
Authority
CN
China
Prior art keywords
object identifier
data
update
intermediate platform
updating
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
CN202010574582.XA
Other languages
Chinese (zh)
Other versions
CN111708795A (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 CN202010574582.XA priority Critical patent/CN111708795B/en
Publication of CN111708795A publication Critical patent/CN111708795A/en
Application granted granted Critical
Publication of CN111708795B publication Critical patent/CN111708795B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Abstract

The present application relates to the field of artificial intelligence, and in particular, to an object identifier generation method, an object identifier update apparatus, a computer device, and a medium. The method comprises the following steps: when monitoring that the log file corresponding to the update of the object information data table is updated, acquiring corresponding update data and sending the update data to the intermediate platform so as to instruct the intermediate platform to generate a corresponding update instruction and push the update instruction to the object identifier maintenance system; when monitoring that the intermediate platform receives an object identifier generation request, judging whether a corresponding object identifier needs to be generated or not based on the updating data; and when the object identifier corresponding to the object identifier generation request is determined to be generated, generating the object identifier corresponding to the object identifier generation request according to the updated data and the generation rule of the object identifier. By adopting the method, the data processing efficiency can be improved. In addition, the invention also relates to a block chain technology, and the updating data, the updating instruction, the object identification generating request, the generated object identification and the like can be stored in the block chain.

Description

Object identification generation method, object identification updating device, computer equipment and medium
Technical Field
The present application relates to the field of artificial intelligence, and in particular, to an object identifier generation method, an object identifier update apparatus, a computer device, and a medium.
Background
With the rapid development of economy and the continuous improvement of living standard, the insurance buying is not only a financing mode, but also an effective method for avoiding risks and establishing a personal guarantee system. And for each insured object, corresponding object identification is provided, and the object identification of each insured object is maintained by a special object identification maintenance system.
In a traditional mode, a TRIGGER program (TRIGGER) such as INSERT (INSERT), UPDATE (UPDATE) and the like is added to a personnel information table of an object identifier generation system, when a TRIGGER condition is met, the TRIGGER program calls the object identifier generation system to generate a processing task, the task processing is carried out through a quartzprogram to generate an object identifier, and then the object identifier maintenance system is called to write the generated object identifier into a database.
However, in this method, the dependency between the object identifier generating system and the object identifier maintaining system is strong, and strong coupling is required between the systems, so that the data processing efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an object identifier generation method, an update method, an apparatus, a computer device, and a medium, which can improve the generation rate of data processing efficiency.
An object identification generation method, the method comprising:
monitoring a log file;
when monitoring that the log file corresponding to the update of the object information data table is updated, acquiring the update data of the corresponding log file;
sending the update data to the intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushing the update instruction to the object identifier maintenance system;
monitoring whether an intermediate platform receives an object identifier generation request corresponding to the update data;
when monitoring that the intermediate platform receives an object identifier generation request, judging whether an object identifier corresponding to the object identifier generation request needs to be generated or not based on the updating data, wherein the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system acquires the updating data;
and when the object identifier corresponding to the object identifier generation request is determined to be generated, generating the object identifier corresponding to the object identifier generation request according to the updated data and the generation rule of the object identifier.
In one embodiment, the determining whether the object identifier corresponding to the object identifier generation request needs to be generated based on the update data includes:
acquiring object information of an updating object corresponding to the updating data, and determining to acquire the attribute of the updating object according to the object information;
when the attribute representation updating object is a newly added object, judging to generate an object identifier corresponding to the object identifier updating request;
and when the attribute representation updating object is an existing object, judging not to generate the object identifier corresponding to the object identifier updating request.
In one embodiment, after generating the object identifier corresponding to the object identifier generation request, the method further includes:
acquiring a data receiving rule of an object identification maintenance system;
assembling the generated object identification to obtain object identification data corresponding to the data receiving rule;
and sending the assembled object identification data to an intermediate platform so as to be pushed to an object identification maintenance system through the intermediate platform.
An object identifier updating method, the method comprising:
monitoring the intermediate platform;
when an update instruction sent by the intermediate platform is monitored, update data corresponding to the update instruction is obtained from the intermediate platform, when the object identification generation system monitors a log file corresponding to the update of the object information data table, the update data of the log file is obtained and sent to the intermediate platform, and then the intermediate platform generates and sends the update data according to the update data;
generating an object identifier generation request corresponding to the updating data, and sending the object identifier generation request to the intermediate platform so as to push the object identifier generation request to the object identifier generation system through the intermediate platform;
monitoring whether an intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request;
when the object identification acquisition instruction is monitored, object identification data corresponding to the object identification acquisition instruction is acquired from the intermediate platform, and the object identification in the object identification data is updated to the object identification database.
In one embodiment, before generating the object identifier generation request corresponding to the update data, the method further includes:
determining the updating type of the object information data table updated by the object identification generating system according to the updating data;
when the update type is determined to be the deletion operation, determining not to update the object identification database;
and when the update type is determined to be the newly-added operation and/or the changed operation, determining to update the object identifier database, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
In one embodiment, after the object identifier in the object identifier data is updated into the object identifier database, the method further includes:
acquiring object data of the updated object from the object identifier generating system according to a data acquisition interface between the object identifier generating system and the object identifier generating system to obtain the number of the updated objects;
acquiring the updating quantity of the updated object identifiers in the object identifier database;
judging whether the number of the objects is consistent with the number of the updates;
when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data;
and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates the object identifier corresponding to the object identifier generation request.
An object identification generation apparatus, the apparatus comprising:
the detection module is used for monitoring the log file;
the update data acquisition module is used for acquiring the update data of the corresponding log file when monitoring that the log file corresponding to the update of the object information data table is updated;
the update data sending module is used for sending the update data to the intermediate platform so as to instruct the intermediate platform to generate an update instruction corresponding to the update data and push the update instruction to the object identifier maintenance system;
the object identification generation request monitoring module is used for monitoring whether the intermediate platform receives an object identification generation request corresponding to the updating data;
the judging module is used for judging whether an object identifier corresponding to the object identifier generation request needs to be generated or not based on the updating data when the intermediate platform is monitored to receive the object identifier generation request, and the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system obtains the updating data;
and the object identifier generating module is used for generating the object identifier corresponding to the object identifier generating request according to the updating data and the generating rule of the object identifier when the object identifier corresponding to the object identifier generating request is determined to be generated.
An object identifier update apparatus, the apparatus comprising:
the first monitoring module is used for monitoring the intermediate platform;
the update data acquisition module is used for acquiring update data corresponding to an update instruction from the intermediate platform when the update instruction sent by the intermediate platform is monitored, acquiring the update data of a log file when the object identification generation system monitors the log file corresponding to the update of the object information data table, and generating and sending the update data according to the update data by the intermediate platform after the update data is sent to the intermediate platform;
the object identification generation request generation module is used for generating an object identification generation request corresponding to the updating data and sending the object identification generation request to the intermediate platform so as to push the object identification generation request to the object identification generation system through the intermediate platform;
the second monitoring module is used for monitoring whether the intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request;
and the object identification data acquisition module is used for acquiring object identification data corresponding to the object identification acquisition instruction from the intermediate platform and updating the object identification in the object identification data to the object identification database when the object identification acquisition instruction is monitored.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium comprising a stored data area storing data created from use of blockchain nodes and a stored program area storing a computer program that when executed by a processor implements the steps of any of the methods described above.
The object identifier generation method, the object identifier updating device, the computer equipment and the medium detect the log file, acquire the updating data corresponding to the log file when detecting the log file corresponding to the update of the object information data table, send the updating data to the intermediate platform to instruct the intermediate platform to generate the corresponding updating instruction so as to push the updating instruction to the object identifier maintenance system, judge the updating data when receiving the object identifier generation request of the object identifier maintenance system, determine whether to generate the object identifier, and then generate the corresponding object identifier according to the updating data and the generation rule of the object identifier when determining to generate the object identifier. Therefore, the message and data transmission between the object identification generation system and the object identification maintenance system can be carried out through the intermediate platform, the strong dependence and the coupling between the systems can be reduced, and the data processing efficiency is improved.
Drawings
FIG. 1 is a diagram of an application scenario of a method for generating object identifiers in an embodiment;
FIG. 2 is a flowchart illustrating a method for generating object identifiers according to an embodiment;
FIG. 3 is a flowchart illustrating an object identifier update method according to an embodiment;
FIG. 4 is a block diagram showing the structure of an object identifier generating apparatus according to an embodiment;
FIG. 5 is a block diagram showing the structure of an object identifier update apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The object identifier generation method and the object identifier updating method provided by the application can be applied to the application environment shown in fig. 1. The first server 102 and the second server 106 are respectively in communication with the third server 104 through a network. In this embodiment, the first server 102 runs an object id generation system, the second server 106 runs an object id maintenance system, and the third server 104 runs an intermediate platform. Specifically, the first server 102 (object identifier generating system) checks and monitors a log file, and when a log file corresponding to the update of the object information data table is monitored, acquires update data corresponding to the log file, and sends the update data to the intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushes the update instruction to the object identifier maintaining system, that is, the second server 106. Then, the first server 102 monitors whether the intermediate platform receives an object identifier generation request corresponding to the update data, and when it is monitored that the intermediate platform receives the object identifier generation request, determines whether an object identifier corresponding to the object identifier generation request needs to be generated based on the update data, where the object identifier generation request is generated and sent to the intermediate platform by the object identifier maintenance system (the second server 106) after the update data is acquired. Further, when the first server 102 determines that the object identifier corresponding to the object identifier generation request needs to be generated, the object identifier corresponding to the object identifier generation request is generated according to the update data and the generation rule of the object identifier, and is sent to the intermediate platform, so as to be pushed to the object identifier maintenance system (the second server 106) through the intermediate platform. The first server 102, the second server 106, and the third server 104 may be implemented by independent servers or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, an object identifier generating method is provided, which is described by taking an example that the method is applied to the first server in fig. 1, and includes the following steps:
step S202, monitoring the log file.
The log information is information recorded in a log file, and may include information of various types of operations.
In this embodiment, various operations of the server are recorded in the log file, such as adding, deleting, and changing.
In particular, the server may monitor the log file in real time through various monitoring and parsing software, e.g., through a Golden Gate or the like.
Step S204, when monitoring that the log file corresponding to the object information data table is updated, acquiring the update data corresponding to the log file.
The object information data table is a table for recording object information of a secured object. The object information may include personal information, which may include but is not limited to name, gender, certificate type, certificate number, etc., as well as group information, which may include but is not limited to group name, unified credit code, organization code, etc.
The update data is data for updating the object information data table, and is generated by updating, for example, a personal name, a certificate type, and a certificate number.
In this embodiment, when the server has an operation of updating the object information in the object information data table, for example, an addition operation, a deletion operation, or a change operation, the corresponding log file may be monitored.
In this embodiment, if the user makes an insurance policy through an insurance company, the server may update the object information of the user into the object information data table, for example, change or delete or add the object information. After the object information is updated, the server records the corresponding update operation in the log file, specifically, the update operation may be in the form of log information, for example, 2020.01.17, and the object information data table is subjected to a new addition operation, and the new addition content is "three pieces of information".
Further, after the server detects the log file through the monitoring analysis software, the log file can be identified and analyzed through the monitoring analysis software to obtain an analysis result, and the update data corresponding to the update operation is obtained from the object information data table according to the analysis result.
And step S206, sending the update data to the intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushing the update instruction to the object identifier maintenance system.
The intermediate platform may include, but is not limited to, socket MQ, rabbitmq, active MQ, redis, KAFKA, and the like.
In this embodiment, the intermediate platform may receive subscription requests of the object identifier generation system and the object identifier maintenance system, and send and push corresponding information to the subscribed system when obtaining subscription data corresponding to the subscription request.
The object identifier maintenance system is a system for maintaining the object identifier of each object. All the object identifications generated by the object identification generation system can be maintained in the object identification maintenance system so as to ensure the uniformity and the integrity of the object identifications.
In this embodiment, before sending the acquired update data to the intermediate platform, the server may perform data format conversion on the acquired update data, convert the acquired update data into update data in a general format, and then send the update data in the general format to the intermediate platform.
In particular, a common format refers to a format that can be applied to a plurality of different systems, and data in the common format is applied to the plurality of different systems. Therefore, after the server converts the update data into the update data in the general format and uploads the update data to the intermediate platform, any system (not limited to the object identifier maintenance system) which needs to acquire the update data can directly perform corresponding processing after acquiring the update data, and identification conversion is not needed, so that the data processing amount of the system can be reduced.
In this embodiment, the server parses the log file through the monitoring and parsing software, and after acquiring the corresponding updated data from the object information data table, the log file may be converted into data in a general format, and then sent to an intermediate platform for storage, for example, the KAFKA platform. The intermediate platform can generate an update instruction corresponding to the update data according to the received update data in the general format, and then push the update instruction to an object identifier maintenance system subscribed to the object identifier generation system.
In this embodiment, the intermediate platform may send the generated update instruction to a plurality of different object identifier maintenance systems subscribed to the object identifier generation system, so as to respectively indicate the plurality of object identifier maintenance systems.
Step S208, whether the intermediate platform receives the object identification generation request corresponding to the update data is monitored.
The object identifier generation request refers to a request for generating an object identifier, and may include, but is not limited to, information of an object identifier maintenance system, object information corresponding to the requested object identifier, and the like.
In this embodiment, the object identifier refers to an identifier for identifying uniqueness of an object, and may be, for example, an object number, an object ID, or the like.
In this embodiment, after uploading the update data in the common format to the intermediate platform, the server may monitor the function corresponding to the intermediate platform at a preset time frequency, for example, the TOPIC, TAG, etc. of the KAFKA platform, so as to monitor whether the object identifier maintenance system has an object identifier generation request for sending the update data.
Optionally, the server may set a listening duration for determining whether the intermediate platform receives an object identifier update request corresponding to the update data, for example, a day. And when the server does not monitor the object identifier updating request corresponding to the updated data within the monitoring time, stopping monitoring to save resources and avoid resource waste caused by long-term monitoring.
Step S210, when it is monitored that the intermediate platform receives the object identifier generation request, whether the object identifier corresponding to the object identifier generation request needs to be generated is judged based on the updating data, and the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system obtains the updating data.
Specifically, after the object identifier maintenance system acquires the update data in the general format from the intermediate platform, the object identifier maintenance system may analyze and determine the object information in the update data to determine the update type of the server for updating the object information data table, and determine whether to update the object identifier corresponding to the update data according to the update type. For example, when the object identifier maintenance system determines that the update type corresponding to the update data is a delete operation, it determines not to update the object identifier, and when the object identifier maintenance system determines that the update type is an add operation and/or a modify operation, it determines to update the object identifier corresponding to the update data.
Further, after determining that the object identifier needs to be updated, the object identifier maintenance system may generate an object identifier generation request corresponding to the updated data, and send the object identifier generation request to the intermediate platform, so as to push the object identifier to the server through the intermediate platform.
In this embodiment, the object identifier generation request generated by the object identifier maintenance system may be generated according to a requirement specification of information that can be received by the server, for example, the object identifier generation request is generated according to an information format corresponding to an applicant, a policy number, an object type, and the like determined by the requirement specification, so that the server can receive the generated object identifier generation request.
Further, after receiving the object identifier generation request pushed by the intermediate platform, the server may determine whether to generate the object identifier corresponding to the object identifier generation request based on the corresponding update data, the object information of the corresponding object, and the like.
Step S212, when it is determined that the object identifier corresponding to the object identifier generation request needs to be generated, the object identifier corresponding to the object identifier generation request is generated according to the update data and the generation rule of the object identifier.
The generation rule is a predefined rule, and is a rule for generating an object identifier, for example, the generation rule identifies that the object identifier is a 12-bit number at the beginning of 0, or a 12-bit alphanumeric combination formed by adding 11-bit numbers to the beginning of an uppercase letter P.
In this embodiment, the server may generate, according to the update data and the corresponding object information, an object identifier corresponding to the update data, for example, capital letters P + year, month and day + random three digits, or capital numerals P + year + four digits after the identity card + random three digits, and the like, according to the generation rule.
In the object identifier generation method, the log file is detected, when the log file corresponding to the update of the object information data table is detected, the update data corresponding to the log file is acquired and sent to the intermediate platform to instruct the intermediate platform to generate the corresponding update instruction so as to push the update instruction to the object identifier maintenance system, when an object identifier generation request of the object identifier maintenance system is received, the update data is judged to determine whether the object identifier is generated, and then when the object identifier is determined to be generated, the corresponding object identifier is generated according to the update data and the generation rule of the object identifier. Therefore, the message and data transmission between the object identification generation system and the object identification maintenance system can be carried out through the intermediate platform, the strong dependence and the coupling between the systems can be reduced, and the data processing efficiency is improved.
In one embodiment, the determining whether the object identifier corresponding to the object identifier generation request needs to be generated based on the update data includes: acquiring object information of an update object corresponding to the update data, and determining the attribute of the update object according to the object information; when the attribute representation updating object is a newly added object, judging to generate an object identifier corresponding to the object identifier updating request; and when the attribute representation updating object is an existing object, judging not to generate the object identifier corresponding to the object identifier updating request.
The attribute of the update object refers to an attribute used for representing an object type of the update object, for example, representing that the update object is a new added object or an existing object.
Specifically, the server may obtain, from the database, object information of an update object corresponding to the update data according to the update data, and determine an attribute of the update object corresponding to the object information according to the object information of the update object and the update data.
In this embodiment, for a personal object, determining the attributes of the updated object based on the object information may be performed in a number of different ways. For example, the attribute of the update subject may be determined based on the name, identification card, passport, military certificate, country or station card in port and australia, driving license, or the like of the update subject included in the subject information.
For example, the server may determine the attribute of the update object according to the name + certificate number + certificate type of the update object, may determine that the attribute of the update object is existing if the name + certificate number + certificate type of the update object is completely the same, and may determine that the attribute of the update object is new if the name + certificate number + certificate type of the update object is not completely the same. Or the server can also judge according to two continuous characters in the name + birthday + number plate number, certificate number + number plate number + name, or the name + birthday + contact telephone, and the like, if the two continuous characters are completely the same, the attribute of the updated object is determined to be existing, otherwise, the updated object is newly added.
In this embodiment, before determining the attribute of the update object according to the certificate number of the update object, the server may further determine the polarity of the number of the certificate number of the update object to determine that the certificate number is 15 bits or 18 bits.
Specifically, when the server determines that the certificate number is 18 digits, it is converted into 15 digits, and if the certificate number is determined to be 15 digits, it is converted into 18 digits. The server can then make a determination by name + two license numbers (original 18 bits and converted 15 bits or original 15 bits and converted 18 bits) to determine whether the object attribute is new or existing.
In this embodiment, for a community object, the server may update the attributes of the object in any of the following ways. For example, if the enterprise name is the same and any certificate number of the unified credit card code or the organization code is the same, the attribute of the updated object is considered to be existing, otherwise, the updated object is newly added; or the enterprise names are the same (if no less than 5 continuous characters in the enterprise names are the same) + the tax registration certificate or any certificate number in the industrial and commercial registration numbers is the same, the attribute of the updated object is considered to be the existing one, otherwise, the new one is added; or the enterprise names are the same (if no less than 8 continuous characters in the enterprise names are the same), the attribute of the updated object is considered to be existing, otherwise, the updated object is newly added; or the enterprise names are the same (if no less than 5 continuous characters in the enterprise names are the same) + any one of the telephone exchange or the contact telephone is the same, the attribute of the updated object is considered to be existing, otherwise, the updated object is newly added.
Further, the server determines the attribute of the update object, and determines whether to generate the object identifier corresponding to the object identifier update request based on the object type of the update object represented by the attribute.
Specifically, when it is determined that the attribute representation updating object is a newly added object, the server determines to generate an object identifier corresponding to the object identifier updating request, and when the attribute representation updating object is an existing object, the server determines not to generate the object identifier corresponding to the object identifier updating request.
In the above embodiment, the object information is obtained, the attribute of the updated object is determined according to the object information, the updated object is determined to be a new object or an existing object, the corresponding object identifier is determined to be generated for the new object, and the existing object is not processed, so that generation of unnecessary object identifiers can be reduced, data processing amount can be reduced, data processing efficiency can be improved, and server resource consumption can be saved.
In one embodiment, after generating the object identifier corresponding to the object identifier generation request, the method may further include: acquiring a data receiving rule of an object identification maintenance system; assembling the generated object identification to obtain object identification data corresponding to the data receiving rule; and sending the assembled object identification data to an intermediate platform so as to be pushed to an object identification maintenance system through the intermediate platform.
The data receiving rule refers to a rule that the object identifier maintenance system can receive data, and may include, but is not limited to, a data format rule for the object identifier maintenance system to receive data, a data size rule for the object identifier maintenance system to receive data, and the like.
The object identification data refers to data which includes an object identification and is generated according to a data receiving rule of the object identification maintenance system, and may also include data such as object information of a corresponding object and generation time of the object identification.
In this embodiment, after the server generates the object identifier corresponding to the object according to the generation rule of the object identifier, the object identifier may be assembled into object identifier data that can be received and viewed by the object identifier maintenance system according to the data receiving rule of the object identifier maintenance system, and then the object identifier data is sent to the intermediate platform.
Further, after the intermediate platform receives the object identifier data, an object identifier acquisition instruction for generating corresponding object identifier data can be pushed to the object identifier maintenance system according to the pre-subscribed relationship between the object identifier generation system and the object identifier maintenance system, so as to instruct the object identifier maintenance system.
In the above embodiment, the object identifier is assembled according to the data receiving rule of the object identifier maintenance system, and the object identifier data is generated, so that the generated object identifier data conforms to the data receiving rule of the object identifier maintenance system, thereby avoiding the possibility that the object identifier maintenance system cannot acquire the object identifier data.
In an embodiment, as shown in fig. 3, an object identifier updating method is provided, which is described by taking the application of the method to the second server in fig. 1 as an example, and includes the following steps:
step S302, monitoring the intermediate platform.
The intermediate platform may include, but is not limited to, the aforementioned platforms such as socket MQ, rabbitmq, active MQ, redis, KAFKA, and the like.
In this embodiment, the server may subscribe to the object identifier generating system through the intermediate platform, and after establishing the corresponding relationship with the object identifier generating system, may monitor the intermediate platform in real time to obtain the message of the object identifier generating system.
Specifically, the server may listen to the intermediate platform at a fixed time frequency to listen to whether the object identification generation system has the update data uploaded.
Step S304, when an updating instruction sent by the intermediate platform is monitored, updating data corresponding to the updating instruction is obtained from the intermediate platform, when the updating instruction is that the object identification generation system monitors a log file corresponding to the object information data table updating, the updating data of the log file is obtained and sent to the intermediate platform, and then the intermediate platform generates and sends the updating data according to the updating data.
The update instruction is an instruction for instructing the object identifier generation system to upload the update data, and the update instruction may include data such as generation time of the update data and specific update content.
In this embodiment, the object identifier generating system monitors the system log file in real time, and when monitoring the log file corresponding to the update of the object information data table, acquires the update data corresponding to the log file, and sends the acquired update data to the intermediate platform, so that the intermediate platform generates a corresponding update instruction according to the update data and sends the update instruction to the server.
Optionally, the update data sent by the object identifier generating system to the intermediate platform may be update data in a common format obtained after the common format conversion is performed.
Step S306, generating an object identification generation request corresponding to the updating data, and sending the object identification generation request to the intermediate platform so as to push the object identification generation request to the object identification generation system through the intermediate platform.
The object identifier generation request refers to a request for generating an object identifier, and the object identifier generation request may include, but is not limited to, object information and a request time for generating the object identifier.
In this embodiment, the server may generate an object identifier generation request corresponding to the update data according to the acquired update data. Optionally, the server may generate an object identifier generation request that the object identifier generation system can receive and recognize according to the data receiving rule of the object identifier generation system, and push the intermediate platform.
Further, after receiving the object identifier generation request, the intermediate platform may push the object identifier generation request to the object identifier generation system according to the subscription relationship between the object identifier generation system and the object identifier maintenance system, so as to request the object identifier generation system to generate the object identifier.
Step S308, whether the intermediate platform sends an object identification acquisition instruction corresponding to the object identification generation request is monitored.
The object identification acquisition instruction is an instruction to acquire object identification data.
The object identification data refers to data which contains object identification and is generated according to a data receiving rule of an object identification maintenance system, and the object identification data can also comprise object information, generation time of the object identification and other data.
In this embodiment, after sending the object identifier generation request to the intermediate platform, the server may continue to monitor the intermediate platform, for example, at a fixed time frequency, to monitor whether the intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request.
In this embodiment, when receiving an object identifier corresponding to the object identifier generation request returned by the object identifier generation system, the monitoring platform generates a corresponding object identifier acquisition instruction according to the received object identifier, and pushes the object identifier acquisition instruction to the server to instruct the server to acquire corresponding object identifier data.
Optionally, the server may set a listening duration, for example, a day, so as to determine whether the intermediate platform receives the object identifier corresponding to the object identifier generation request within the listening duration.
In this embodiment, when the server does not monitor the object identifier corresponding to the object identifier generation request within the monitoring duration, the monitoring is stopped. Or, the server may also resend the object identifier generation request when the object identifier corresponding to the object identifier generation request is not monitored in the monitoring duration, so as to monitor the intermediate platform again.
Step S310, when the object identification acquisition instruction is monitored, object identification data corresponding to the object identification acquisition instruction is acquired from the intermediate platform, and the object identification in the object identification data is updated to the object identification database.
The object identification database is a database used for storing object identifications in the object identification maintenance system. The server can store the obtained object identification into an object identification database so as to maintain the object identification of each insurable object through the object identification database.
In this embodiment, the server may obtain, according to the object identifier obtaining instruction, object identifier data corresponding to the object identifier obtaining instruction from the intermediate platform, and update the object identifier in the object identifier data to the object identifier database, for example, the object identifier database may be newly added or changed in object identifier.
In the above embodiment, the intermediate platform is monitored, and when the update instruction pushed by the intermediate platform is monitored, the update data is acquired from the intermediate platform, and then the corresponding object identifier generation request is generated and sent to the intermediate platform, so that the update data is pushed to the object identifier generation system through the intermediate platform, and the intermediate platform continues to be monitored. Further, when monitoring an object identifier acquisition instruction of a corresponding object identifier generation request pushed by the intermediate platform, acquiring corresponding object identifier data from the intermediate platform and updating the object identifier data into the object identifier database, so that information and data can be pushed through the intermediate platform, the strong dependence between systems can be reduced, and the efficiency of data processing can be improved.
In one embodiment, before generating the object identifier generation request corresponding to the update data, the method may further include: determining the updating type of the object information data table updated by the object identification generating system according to the updating data; when the update type is determined to be the deletion operation, determining not to update the object identification database; and when the update type is determined to be the adding operation and/or the changing operation, determining to update the object identifier database, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
In this embodiment, after the server obtains the update data from the intermediate platform, the update type of the object information data table updated by the object identifier generation system may be determined according to the update data, where the update type may be, for example, a deletion operation, an update operation, or a change operation.
The deleting operation refers to an operation of deleting existing object information in an object information data table of the object identification generation system, the adding operation refers to an operation of adding new object information of an object in the object information data table, and the changing operation refers to an operation of changing the existing object information in the object information data table, such as changing a name, a certificate type, a certificate number, a birthday, a contact telephone number, a license plate and the like.
In this embodiment, when determining that the update type is the delete operation, the server determines not to update the object identifier database, and does not perform further processing. And when the server determines that the update type is the adding operation and/or the changing operation, determining to update the object identification database, continuously generating an object identification update request corresponding to the update data, and sending the object identification update request to the intermediate platform so as to be pushed to the object identification generation system through the intermediate platform.
In the above embodiment, the update type of the object information data table by the object information generation system is determined according to the update data, and whether the object information data table is updated is determined according to the update type, so that the object identifier database is determined to be updated for a necessary update type, such as a new addition operation and/or a change operation, and the object identifier database is determined not to be updated for an unnecessary update type, such as a deletion operation, and thus, the amount of data that needs to be updated can be reduced, and the update processing efficiency can be improved.
In one embodiment, after the object identifier in the object identifier data is updated to the object identifier database, the method may further include: acquiring object data of an updated object from the object identifier generating system according to a data acquisition interface between the object identifier generating system and the object identifier generating system to obtain the number of the updated objects; acquiring the updating quantity of the updated object identifiers in the object identifier database; judging whether the number of the objects is consistent with the updating number; when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data; and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates the object identifier corresponding to the object identifier generation request.
The data acquisition interface refers to an interface for data interaction between the object identifier generation system and the object identifier maintenance system.
The object data of the update object refers to data for updating the object information in a certain time interval, for example, object data for updating the object information in a day, and the object data of the update object may include, but is not limited to, updated object information, and updated update time information.
In this embodiment, the object identifier generation system may store the object data of the update object in the form of a data table structure, and then send the object data to the server through the interface.
In this embodiment, after the server obtains the object data of the update object in the certain time interval, the server may count the number of objects of the update object in the object data to obtain the corresponding number of objects.
Further, the server may count the number of updated object identifiers in the object identifier database within the certain time interval, so as to obtain the updated number of updated object identifiers in the object identifier database.
In this embodiment, after obtaining the number of objects of the updated object and the updated number of the object identifier in the object identifier database, the server may determine whether the numbers are consistent by comparing the number of objects with the updated number.
Specifically, when the server determines that the number of the objects is inconsistent with the update number, the server may obtain, according to the updated object identifier in the object identifier database within the certain time interval, the update data corresponding to the updated object identifier, and match the update data with the obtained object data, for example, match the name, the certificate type, the certificate number, and the like of the object in the update data and the object data, thereby determining that the matching is successful or the matching is failed.
In specific implementation, the update data and the object data may be two data tables, and the server may perform sequential matching through the table primary keys, determine that matching is successful if the table primary keys are consistent, and determine that matching is failed if the table primary keys are inconsistent.
Further, the server acquires the object data of the unmatched update object, namely acquires the object data which fails to be matched, generates an object identifier generation request, and then sends the object identifier generation request to the intermediate platform so as to request the object identifier generation system to generate the object identifier.
In the above embodiment, the object data of the update object is obtained through the data obtaining interface, and whether the number of the objects is consistent with the update number is determined, when the number of the objects is inconsistent with the update number, the object data is matched with the update data corresponding to the update object, the object data of the update object that is not matched is obtained, and then an object identifier generation request is generated to request for generating the object identifier. Therefore, statistical analysis can be performed on the updated objects in the server regularly to determine that the object identifiers of all the updated objects exist in the object identifier database, so as to ensure the integrity of the object identifiers in the object identifier database.
In one embodiment, at least one of the update data, the update instruction, the object identifier generation request, and the generated object identifier is uploaded to the blockchain and stored in a node of the blockchain.
The block chain refers to a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A Block chain (Block chain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data Block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next Block.
Specifically, the blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In this embodiment, the server may upload and store one or more data of the update data, the update instruction, the object identifier generation request, and the generated object identifier in a node of the blockchain, so as to ensure the privacy and security of the data.
In the above embodiment, at least one of the update data, the update instruction, the object identifier generation request, and the generated object identifier is uploaded to the block chain and stored in the node of the block chain, so that the privacy of the data stored in the block chain node can be guaranteed, and the security of the data can be improved.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided an object identification generating apparatus, including: the detection module 410, the update data acquisition module 420, the update data transmission module 430, the object identifier generation request monitoring module 440, the judgment module 450, and the object identifier generation module 460, wherein:
and a detection module 410, configured to monitor the log file.
The update data obtaining module 420 is configured to, when it is monitored that the log file corresponds to the update of the object information data table, obtain update data of the corresponding log file.
And the update data sending module 430 is configured to send the update data to the intermediate platform, so as to instruct the intermediate platform to generate an update instruction corresponding to the update data, and push the update instruction to the object identifier maintenance system.
The object identifier generation request monitoring module 440 is configured to monitor whether the intermediate platform receives an object identifier generation request corresponding to the update data.
The determining module 450 is configured to determine whether an object identifier corresponding to the object identifier generation request needs to be generated based on the update data when it is monitored that the intermediate platform receives the object identifier generation request, where the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system obtains the update data.
And an object identifier generating module 460, configured to generate an object identifier corresponding to the object identifier generation request according to the update data and the generation rule of the object identifier when it is determined that the object identifier corresponding to the object identifier generation request needs to be generated.
In one embodiment, the determining module 450 may include:
and the acquisition submodule is used for acquiring the object information of the update object corresponding to the update data and determining and acquiring the attribute of the update object according to the object information.
And the first generation submodule is used for judging to generate the object identifier corresponding to the object identifier updating request when the attribute representation updating object is a newly added object.
And the second generation submodule is used for judging that the object identifier corresponding to the object identifier updating request is not generated when the attribute representation updating object is an existing object.
In one embodiment, the apparatus may further include:
a data receiving rule obtaining module, configured to obtain the data receiving rule of the object identifier maintenance system after the object identifier generating module 460 generates the object identifier corresponding to the object identifier generating request.
And the assembling module is used for assembling the generated object identifier to obtain object identifier data corresponding to the data receiving rule.
And the sending module is used for sending the assembled object identification data to the intermediate platform so as to be pushed to the object identification maintenance system through the intermediate platform.
For the specific definition of the object identifier generating apparatus, reference may be made to the definition of the object identifier generating method in the foregoing, and details are not described herein again. The modules in the object identifier generating apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 5, there is provided an object identifier updating apparatus, including: a first listening module 510, an update data acquisition module 520, an object identification generation request generation module 530, a second listening module 540, and an object identification data acquisition module 550, wherein:
the first listening module 510 is configured to listen to the intermediate platform.
An update data obtaining module 520, configured to obtain, when an update instruction sent by the intermediate platform is monitored, update data corresponding to the update instruction from the intermediate platform, where the update instruction is a log file corresponding to an update of the object information data table, when the object identifier generating system monitors that the log file corresponds to the update of the object information data table, the update data of the log file is obtained, and after the update data is sent to the intermediate platform, the intermediate platform generates and sends the update data according to the update data.
The object identifier generation request generating module 530 is configured to generate an object identifier generation request corresponding to the update data, and send the object identifier generation request to the intermediate platform, so as to push the object identifier generation request to the object identifier generation system through the intermediate platform.
The second monitoring module 540 is configured to monitor whether the intermediate platform sends an object identifier obtaining indication corresponding to the object identifier generation request.
And an object identifier data obtaining module 550, configured to, when the object identifier obtaining indication is monitored, obtain object identifier data corresponding to the object identifier obtaining indication from the intermediate platform, and update the object identifier in the object identifier data to the object identifier database.
In one embodiment, the apparatus may further include:
and an update type determining module, configured to determine, according to the update data, an update type for the object identifier generating system to update the object information data table before the object identifier generation request corresponding to the update data is generated by the object identifier generation request generating module 530.
And the first determining module is used for determining not to update the object identification database when the update type is determined to be the deletion operation.
And the second determining module is used for determining to update the object identifier database when the update type is determined to be the adding operation and/or the changing operation, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
In one embodiment, after the object identifier in the object identifier data is updated to the object identifier database, the method further includes:
acquiring object data of the updated object from the object identifier generating system according to a data acquisition interface between the object identifier generating system and the object identifier generating system to obtain the number of the updated objects;
acquiring the updating quantity of the updated object identifiers in the object identifier database;
judging whether the number of the objects is consistent with the number of the updates;
when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data;
and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates the object identifier corresponding to the object identifier generation request.
For the specific definition of the object identifier updating apparatus, reference may be made to the above definition of the object identifier updating method, which is not described herein again. The modules in the object identifier updating apparatus can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing data such as log files, update data, object identifications and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an object identification generation method or an update method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: monitoring a log file; when monitoring that the log file corresponding to the update of the object information data table is updated, acquiring the update data of the corresponding log file; sending the update data to the intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushing the update instruction to the object identifier maintenance system; monitoring whether an intermediate platform receives an object identifier generation request corresponding to the update data; when monitoring that the intermediate platform receives an object identifier generation request, judging whether an object identifier corresponding to the object identifier generation request needs to be generated or not based on the updating data, wherein the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system acquires the updating data; and when the object identifier corresponding to the object identifier generation request is determined to be generated, generating the object identifier corresponding to the object identifier generation request according to the updated data and the generation rule of the object identifier.
In one embodiment, when the processor executes the computer program, determining whether an object identifier corresponding to the object identifier generation request needs to be generated based on the update data may include: acquiring object information of an updating object corresponding to the updating data, and determining to acquire the attribute of the updating object according to the object information; when the attribute representation updating object is a newly added object, judging to generate an object identifier corresponding to the object identifier updating request; and when the attribute representation updating object is an existing object, judging not to generate the object identifier corresponding to the object identifier updating request.
In one embodiment, after the processor executes the computer program to generate the object identifier corresponding to the object identifier generation request, the following steps are also implemented: acquiring a data receiving rule of an object identification maintenance system; assembling the generated object identification to obtain object identification data corresponding to the data receiving rule; and sending the assembled object identification data to an intermediate platform so as to be pushed to an object identification maintenance system through the intermediate platform.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: monitoring the intermediate platform; when an updating instruction sent by the intermediate platform is monitored, acquiring updating data corresponding to the updating instruction from the intermediate platform, and when the updating instruction is that the object identification generation system monitors a log file corresponding to the updating of the object information data table, acquiring the updating data of the log file, and after the updating data is sent to the intermediate platform, generating and sending the updating data by the intermediate platform according to the updating data; generating an object identifier generation request corresponding to the updating data, and sending the object identifier generation request to the intermediate platform so as to push the object identifier generation request to the object identifier generation system through the intermediate platform; monitoring whether an intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request; when the object identification acquisition instruction is monitored, object identification data corresponding to the object identification acquisition instruction is acquired from the intermediate platform, and the object identification in the object identification data is updated to the object identification database.
In one embodiment, before the processor executes the computer program to generate the object identifier generation request corresponding to the update data, the following steps may be further implemented: determining the updating type of the object information data table updated by the object identification generating system according to the updating data; when the update type is determined to be the deletion operation, determining not to update the object identification database; and when the update type is determined to be the newly-added operation and/or the changed operation, determining to update the object identifier database, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
In one embodiment, after the processor executes the computer program to update the object identifier in the object identifier data to the object identifier database, the following steps may be further implemented: acquiring object data of the updated object from the object identifier generating system according to a data acquisition interface between the object identifier generating system and the object identifier generating system to obtain the number of the updated objects; acquiring the updating quantity of the updated object identifiers in the object identifier database; judging whether the number of the objects is consistent with the updating number; when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data; and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates the object identifier corresponding to the object identifier generation request.
In one embodiment, there is provided a computer-readable storage medium comprising a stored data area storing data created according to use of blockchain nodes and a stored program area storing a computer program that when executed by a processor implements the steps of: monitoring a log file; when monitoring that the log file corresponding to the update of the object information data table is updated, acquiring the update data of the corresponding log file; sending the update data to the intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushing the update instruction to the object identifier maintenance system; monitoring whether an intermediate platform receives an object identifier generation request corresponding to the update data; when monitoring that the intermediate platform receives an object identifier generation request, judging whether an object identifier corresponding to the object identifier generation request needs to be generated or not based on the updating data, wherein the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system acquires the updating data; and when the object identifier corresponding to the object identifier generation request is determined to be required to be generated, generating the object identifier corresponding to the object identifier generation request according to the updated data and the generation rule of the object identifier.
In one embodiment, the computer program when executed by the processor for determining whether an object identifier corresponding to the object identifier generation request needs to be generated based on the update data may include: acquiring object information of an updating object corresponding to the updating data, and determining to acquire the attribute of the updating object according to the object information; when the attribute representation updating object is a newly added object, judging to generate an object identifier corresponding to the object identifier updating request; and when the attribute representation updating object is an existing object, judging not to generate the object identifier corresponding to the object identifier updating request.
In one embodiment, after the computer program is executed by the processor to generate the object identifier corresponding to the object identifier generation request, the following steps are also implemented: acquiring a data receiving rule of an object identification maintenance system; assembling the generated object identification to obtain object identification data corresponding to the data receiving rule; and sending the assembled object identification data to an intermediate platform so as to be pushed to an object identification maintenance system through the intermediate platform.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: monitoring the intermediate platform; when an update instruction sent by the intermediate platform is monitored, update data corresponding to the update instruction is obtained from the intermediate platform, when the object identification generation system monitors a log file corresponding to the update of the object information data table, the update data of the log file is obtained and sent to the intermediate platform, and then the intermediate platform generates and sends the update data according to the update data; generating an object identifier generation request corresponding to the updating data, and sending the object identifier generation request to the intermediate platform so as to push the object identifier generation request to the object identifier generation system through the intermediate platform; monitoring whether an intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request; when the object identification acquisition instruction is monitored, object identification data corresponding to the object identification acquisition instruction is acquired from the intermediate platform, and the object identification in the object identification data is updated to the object identification database.
In one embodiment, before the computer program is executed by the processor to generate the object identifier generation request corresponding to the update data, the following steps may be further implemented: determining the updating type of the object information data table updated by the object identification generating system according to the updating data; when the update type is determined to be the deletion operation, determining not to update the object identification database; and when the update type is determined to be the newly-added operation and/or the changed operation, determining to update the object identifier database, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
In one embodiment, after the computer program is executed by the processor to update the object identifier in the object identifier data to the object identifier database, the following steps may be further implemented: acquiring object data of the updated object from the object identifier generating system according to a data acquisition interface between the object identifier generating system and the object identifier generating system to obtain the number of the updated objects; acquiring the updating quantity of the updated object identifiers in the object identifier database; judging whether the number of the objects is consistent with the updating number; when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data; and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates the object identifier corresponding to the object identifier generation request.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An object identifier generation method, the method comprising:
monitoring a log file;
when monitoring that a log file corresponding to the update of an object information data table is updated, acquiring update data corresponding to the log file;
sending the update data to an intermediate platform to instruct the intermediate platform to generate an update instruction corresponding to the update data, and pushing the update instruction to an object identifier maintenance system;
monitoring whether the intermediate platform receives an object identifier generation request corresponding to the update data;
when monitoring that the intermediate platform receives the object identifier generation request, judging whether an object identifier corresponding to the object identifier generation request needs to be generated or not based on the updating data, wherein the object identifier generation request is generated and sent to the intermediate platform after the object identifier maintenance system acquires the updating data;
and when the object identifier corresponding to the object identifier generation request is determined to be generated, generating the object identifier corresponding to the object identifier generation request according to the update data and the generation rule of the object identifier.
2. The method according to claim 1, wherein the determining whether the object identifier corresponding to the object identifier generation request needs to be generated based on the update data comprises:
acquiring object information of an updating object corresponding to the updating data, and determining the attribute of the updating object according to the object information;
when the attribute represents that the updated object is a newly added object, judging to generate an object identifier corresponding to the object identifier updating request;
and when the attribute represents that the updating object is an existing object, judging that the object identifier corresponding to the object identifier updating request is not generated.
3. The method according to claim 1, wherein after generating the object id corresponding to the object id generation request, further comprising:
acquiring a data receiving rule of the object identification maintenance system;
assembling the generated object identification to obtain object identification data corresponding to the data receiving rule;
and sending the assembled object identification data to the intermediate platform so as to be pushed to the object identification maintenance system through the intermediate platform.
4. An object identifier updating method, the method comprising:
monitoring the intermediate platform;
when an update instruction sent by the intermediate platform is monitored, acquiring update data corresponding to the update instruction from the intermediate platform, wherein the update instruction is obtained when an object identification generation system monitors a log file corresponding to an object information data table update, acquiring the update data of the log file, and after the update data is sent to the intermediate platform, the intermediate platform generates and sends the update data according to the update data;
generating an object identifier generation request corresponding to the updating data, and sending the object identifier generation request to the intermediate platform so as to push the object identifier generation request to the object identifier generation system through the intermediate platform;
monitoring whether the intermediate platform sends an object identifier acquisition instruction corresponding to the object identifier generation request;
when the object identification acquisition instruction is monitored, acquiring object identification data corresponding to the object identification acquisition instruction from the intermediate platform, and updating an object identification in the object identification data to an object identification database.
5. The method of claim 4, wherein before generating the object identifier generation request corresponding to the update data, further comprising:
determining the update type of the object information data table updated by the object identification generation system according to the update data;
when the update type is determined to be the deletion operation, determining not to update the object identification database;
and when the update type is determined to be a new operation and/or a change operation, determining to update the object identifier database, continuously generating an object identifier update request corresponding to the update data, and sending the object identifier update request to the intermediate platform.
6. The method of claim 4, wherein after the updating the object identifier in the object identifier data to the object identifier database, further comprising:
according to a data acquisition interface between the object identification generation system and the object identification generation system, acquiring object data of an updated object from the object identification generation system to obtain the number of the updated object;
acquiring the updating quantity of the updated object identifiers in the object identifier database;
judging whether the number of the objects is consistent with the updating number;
when the number of the objects is not consistent with the updating number, matching the object data with the updating data corresponding to the updated object identifier, and acquiring the object data of the updated object which is not matched in the object data;
and generating an object identifier generation request based on the unmatched object data of the updated object, and sending the object identifier generation request to the intermediate platform so as to be pushed to the object identifier generation system through the intermediate platform, so that the object identifier generation system generates an object identifier corresponding to the object identifier generation request.
7. An object identifier generation apparatus, the apparatus comprising:
the detection module is used for monitoring the log file;
the update data acquisition module is used for acquiring the update data corresponding to the log file when monitoring that the log file corresponding to the update of the object information data table is updated;
the update data sending module is used for sending the update data to an intermediate platform so as to instruct the intermediate platform to generate an update instruction corresponding to the update data and push the update instruction to an object identifier maintenance system;
an object identifier generation request monitoring module, configured to monitor whether the intermediate platform receives an object identifier generation request corresponding to the update data;
the judging module is used for judging whether an object identifier corresponding to the object identifier generating request needs to be generated or not based on the updating data when the intermediate platform is monitored to receive the object identifier generating request, and the object identifier generating request is generated and sent to the intermediate platform after the object identifier maintenance system acquires the updating data;
and the object identifier generating module is used for generating the object identifier corresponding to the object identifier generating request according to the updating data and the generating rule of the object identifier when the object identifier corresponding to the object identifier generating request is determined to be generated.
8. An object identifier update apparatus, characterized in that the apparatus comprises:
the first monitoring module is used for monitoring the intermediate platform;
the device comprises an update data acquisition module, an update data processing module and an update data processing module, wherein the update data acquisition module is used for acquiring update data corresponding to an update instruction from the intermediate platform when monitoring the update instruction sent by the intermediate platform, and the update instruction is used for acquiring the update data of a log file when an object identification generation system monitors the log file corresponding to the update of an object information data table and sending the update data to the intermediate platform, and the intermediate platform generates and sends the update data according to the update data;
the object identifier generation request generation module is used for generating an object identifier generation request corresponding to the updating data and sending the object identifier generation request to the intermediate platform so as to push the object identifier generation request to the object identifier generation system through the intermediate platform;
a second monitoring module, configured to monitor whether the intermediate platform sends an object identifier obtaining indication corresponding to the object identifier generation request;
and the object identification data acquisition module is used for acquiring object identification data corresponding to the object identification acquisition instruction from the intermediate platform when the object identification acquisition instruction is monitored, and updating the object identification in the object identification data into an object identification database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method of any of claims 1 to 3 or 4 to 6.
10. A computer-readable storage medium comprising a stored data area storing data created from the use of blockchain nodes and a stored program area storing a computer program, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 3 or 4 to 6 when executed by a processor.
CN202010574582.XA 2020-06-22 2020-06-22 Object identification generation method, object identification updating device, computer equipment and medium Active CN111708795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010574582.XA CN111708795B (en) 2020-06-22 2020-06-22 Object identification generation method, object identification updating device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010574582.XA CN111708795B (en) 2020-06-22 2020-06-22 Object identification generation method, object identification updating device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN111708795A CN111708795A (en) 2020-09-25
CN111708795B true CN111708795B (en) 2022-11-04

Family

ID=72541728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010574582.XA Active CN111708795B (en) 2020-06-22 2020-06-22 Object identification generation method, object identification updating device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN111708795B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818059A (en) * 2021-01-27 2021-05-18 百果园技术(新加坡)有限公司 Information real-time synchronization method and device based on container release platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965738A (en) * 2015-06-26 2015-10-07 深圳市九洲电器有限公司 Set top box data writing-in method and system
CN105490843A (en) * 2015-12-01 2016-04-13 努比亚技术有限公司 Information processing method and system
US9674344B1 (en) * 2013-01-23 2017-06-06 West Corporation Instant support agent call setup and call connection application
CN107864045A (en) * 2016-09-28 2018-03-30 平安科技(深圳)有限公司 The track recording method and device of identification information
WO2018058919A1 (en) * 2016-09-28 2018-04-05 平安科技(深圳)有限公司 Identification information generating method, apparatus, device, and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10924491B2 (en) * 2018-09-24 2021-02-16 Sap Se Process manager for digital communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9674344B1 (en) * 2013-01-23 2017-06-06 West Corporation Instant support agent call setup and call connection application
CN104965738A (en) * 2015-06-26 2015-10-07 深圳市九洲电器有限公司 Set top box data writing-in method and system
CN105490843A (en) * 2015-12-01 2016-04-13 努比亚技术有限公司 Information processing method and system
CN107864045A (en) * 2016-09-28 2018-03-30 平安科技(深圳)有限公司 The track recording method and device of identification information
WO2018058919A1 (en) * 2016-09-28 2018-04-05 平安科技(深圳)有限公司 Identification information generating method, apparatus, device, and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"软件定义网络中的异常流量检测研究进展";徐玉华 等;《软件学报》;20191106;正文第183-200页 *

Also Published As

Publication number Publication date
CN111708795A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110309125B (en) Data verification method, electronic device and storage medium
CN111506584B (en) Block chain-based service data processing method and device and computer equipment
CN110490594B (en) Service data processing method and device, computer equipment and storage medium
CN109460252B (en) Configuration file processing method and device based on git and computer equipment
CN111865691B (en) Alarm file distribution method, device, equipment and medium based on artificial intelligence
CN112861496A (en) Report generation display method and device, computer equipment and readable storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN111741112B (en) File downloading method, device, equipment and storage medium based on artificial intelligence
CN108282484B (en) Password acquisition method and device, computer equipment and storage medium
CN110336786B (en) Message sending method, device, computer equipment and storage medium
CN111880919B (en) Data scheduling method, system and computer equipment
CN110149202B (en) Parameter configuration and reconstruction method, device, equipment and medium based on block chain
CN109325058B (en) Rule batch comparison method, device, computer equipment and storage medium
CN113641762A (en) Information pushing method, device and system and computer readable storage device
CN110913397B (en) Short message verification method, device, storage medium and computer equipment
CN110223075B (en) Identity authentication method and device, computer equipment and storage medium
CN111708795B (en) Object identification generation method, object identification updating device, computer equipment and medium
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN111552989A (en) Service data processing method, device, equipment and storage medium based on block chain
CN110908801A (en) Data processing method and device based on block chain, computer equipment and storage medium
CN108848165B (en) Service request processing method and device, computer equipment and storage medium
CN112507010B (en) Service data processing method and device, computer equipment and storage medium
CN111694809B (en) File filtering method and device based on block chain and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant